blob: fd97756aa7de9934f72fffc09c5a89e7b480a330 (
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
|
package fake
import (
"testing"
)
func TestProducts(t *testing.T) {
for _, lang := range GetLangs() {
SetLang(lang)
v := Brand()
if v == "" {
t.Errorf("Brand failed with lang %s", lang)
}
v = ProductName()
if v == "" {
t.Errorf("ProductName failed with lang %s", lang)
}
v = Product()
if v == "" {
t.Errorf("Product failed with lang %s", lang)
}
v = Model()
if v == "" {
t.Errorf("Model failed with lang %s", lang)
}
}
}
|