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