summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go')
-rw-r--r--vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go b/vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go
deleted file mode 100644
index 6336d29b2..000000000
--- a/vendor/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package language
-
-import (
- "testing"
-)
-
-func TestNewPlural(t *testing.T) {
- tests := []struct {
- src string
- plural Plural
- err bool
- }{
- {"zero", Zero, false},
- {"one", One, false},
- {"two", Two, false},
- {"few", Few, false},
- {"many", Many, false},
- {"other", Other, false},
- {"asdf", Invalid, true},
- }
- for _, test := range tests {
- plural, err := NewPlural(test.src)
- wrongErr := (err != nil && !test.err) || (err == nil && test.err)
- if plural != test.plural || wrongErr {
- t.Errorf("NewPlural(%#v) returned %#v,%#v; expected %#v", test.src, plural, err, test.plural)
- }
- }
-}