Debian Codegraph @

test/currencies_test.go

raw symbols SCIP
1 package test
2
3 import (
4 "testing"
5
6 "github.com/icrowley/fake"
7 )
8
9 func TestCurrencies(t *testing.T) {
10 for _, lang := range fake.GetLangs() {
11 fake.SetLang(lang)
12
13 v := fake.Currency()
14 if v == "" {
15 t.Errorf("Currency failed with lang %s", lang)
16 }
17
18 v = fake.CurrencyCode()
19 if v == "" {
20 t.Errorf("CurrencyCode failed with lang %s", lang)
21 }
22 }
23 }