Files
mostlymatter/vendor/github.com/icrowley/fake/general_test.go
Jesús Espino 6990d052d5 [XYZ-6] Add sampledata platform command (#8027)
* Add fake dependency

* [XYZ-6] Add sampledata platform command

* Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
2018-01-11 10:57:47 -05:00

47 строки
770 B
Go

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)
}
}
}