Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | //////////////////////////////////////////////////////////////////////////////// |
||
7 | package util |
||
8 | |||
9 | import ( |
||
10 | "testing" |
||
11 | "unicode/utf8" |
||
12 | ) |
||
13 | |||
14 | func TestRandString(t *testing.T) { |
||
15 | if got := RandString(10); utf8.RuneCountInString(got) != 10 { |
||
16 | t.Errorf("RandString() = %v, want %v", utf8.RuneCountInString(got), 10) |
||
17 | } |
||
19 |