blob: 373ef3bbf8b0001869ff203b01b68944165ac389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package fake
import (
"testing"
)
func TestGeneral(t *testing.T) {
for _, lang := range GetLangs() {
SetLang(lang)
v := Password(4, 10, true, true, true)
if v == "" {
t.Errorf("Password failed with lang %s", lang)
}
v = SimplePassword()
if v == "" {
t.Errorf("SimplePassword failed with lang %s", lang)
}
v = Color()
if v == "" {
t.Errorf("Color failed with lang %s", lang)
}
v = HexColor()
if v == "" {
t.Errorf("HexColor failed with lang %s", lang)
}
v = HexColorShort()
if v == "" {
t.Errorf("HexColorShort failed with lang %s", lang)
}
v = DigitsN(2)
if v == "" {
t.Errorf("DigitsN failed with lang %s", lang)
}
v = Digits()
if v == "" {
t.Errorf("Digits failed with lang %s", lang)
}
}
}
|