-
Notifications
You must be signed in to change notification settings - Fork 78
/
addresses_test.go
56 lines (45 loc) · 910 Bytes
/
addresses_test.go
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
47
48
49
50
51
52
53
54
55
56
package fake
import (
"testing"
)
func TestAddresses(t *testing.T) {
for _, lang := range GetLangs() {
SetLang(lang)
v := Continent()
if v == "" {
t.Errorf("Continent failed with lang %s", lang)
}
v = Country()
if v == "" {
t.Errorf("Country failed with lang %s", lang)
}
v = City()
if v == "" {
t.Errorf("City failed with lang %s", lang)
}
v = State()
if v == "" {
t.Errorf("State failed with lang %s", lang)
}
v = StateAbbrev()
if v == "" && lang == "en" {
t.Errorf("StateAbbrev failed with lang %s", lang)
}
v = Street()
if v == "" {
t.Errorf("Street failed with lang %s", lang)
}
v = StreetAddress()
if v == "" {
t.Errorf("StreetAddress failed with lang %s", lang)
}
v = Zip()
if v == "" {
t.Errorf("Zip failed with lang %s", lang)
}
v = Phone()
if v == "" {
t.Errorf("Phone failed with lang %s", lang)
}
}
}