summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/icrowley/fake/currencies_test.go
blob: f3a07ae8ef43d4b95029b20dbb4a964cf37a0e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package fake

import (
	"testing"
)

func TestCurrencies(t *testing.T) {
	for _, lang := range GetLangs() {
		SetLang(lang)

		v := Currency()
		if v == "" {
			t.Errorf("Currency failed with lang %s", lang)
		}

		v = CurrencyCode()
		if v == "" {
			t.Errorf("CurrencyCode failed with lang %s", lang)
		}
	}
}