summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/icrowley/fake/currencies_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/icrowley/fake/currencies_test.go')
-rw-r--r--vendor/github.com/icrowley/fake/currencies_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/github.com/icrowley/fake/currencies_test.go b/vendor/github.com/icrowley/fake/currencies_test.go
new file mode 100644
index 000000000..f3a07ae8e
--- /dev/null
+++ b/vendor/github.com/icrowley/fake/currencies_test.go
@@ -0,0 +1,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)
+ }
+ }
+}