* Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
47 строки
770 B
Go
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)
|
|
}
|
|
}
|
|
}
|