Beispiel #1
0
func TestFakerRuWithCallback(t *testing.T) {
	faker.SetLang("ru")
	faker.EnFallback(true)
	brand := faker.Brand()
	if brand == "" {
		t.Error("Fake call for name with no samples with callback should not return blank string")
	}
}
Beispiel #2
0
func TestFakerRuWithoutCallback(t *testing.T) {
	faker.SetLang("ru")
	faker.EnFallback(false)
	brand := faker.Brand()
	if brand != "" {
		t.Error("Fake call with no samples should return blank string")
	}
}