Skip to content

Commit

Permalink
test: 添加测试
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Jan 20, 2025
1 parent 86478aa commit 5fd45f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ func TestChars(t *testing.T) {
a.Equal(s[0], 'a').
Equal(s[len(s)-1], 'Z')

s = LowerAlpha()
a.Equal(s[0], 'a').
Equal(s[len(s)-1], 'z')

s = UpperAlpha()
a.Equal(s[0], 'A').
Equal(s[len(s)-1], 'Z')

s = Number()
a.Equal(s[0], '1').
Equal(s[len(s)-1], '0')
Expand Down

0 comments on commit 5fd45f5

Please sign in to comment.