diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-29 12:46:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 12:46:30 -0700 |
commit | b84736e9b6401df0c6eeab9950bef09458a6aefd (patch) | |
tree | d9175208de3236db75a33879750a57b3000ba096 /vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go | |
parent | 8b9dbb86133ff0fd6002a391268383d1593918ca (diff) | |
download | chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.gz chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.bz2 chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.zip |
Updating server dependancies. (#7538)
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go b/vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go index 29030876a..e4f33902b 100644 --- a/vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go +++ b/vendor/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go @@ -8,20 +8,20 @@ import ( func TestNewOperands(t *testing.T) { tests := []struct { input interface{} - ops *operands + ops *Operands err bool }{ - {int64(0), &operands{0.0, 0, 0, 0, 0, 0}, false}, - {int64(1), &operands{1.0, 1, 0, 0, 0, 0}, false}, - {"0", &operands{0.0, 0, 0, 0, 0, 0}, false}, - {"1", &operands{1.0, 1, 0, 0, 0, 0}, false}, - {"1.0", &operands{1.0, 1, 1, 0, 0, 0}, false}, - {"1.00", &operands{1.0, 1, 2, 0, 0, 0}, false}, - {"1.3", &operands{1.3, 1, 1, 1, 3, 3}, false}, - {"1.30", &operands{1.3, 1, 2, 1, 30, 3}, false}, - {"1.03", &operands{1.03, 1, 2, 2, 3, 3}, false}, - {"1.230", &operands{1.23, 1, 3, 2, 230, 23}, false}, - {"20.0230", &operands{20.023, 20, 4, 3, 230, 23}, false}, + {int64(0), &Operands{0.0, 0, 0, 0, 0, 0}, false}, + {int64(1), &Operands{1.0, 1, 0, 0, 0, 0}, false}, + {"0", &Operands{0.0, 0, 0, 0, 0, 0}, false}, + {"1", &Operands{1.0, 1, 0, 0, 0, 0}, false}, + {"1.0", &Operands{1.0, 1, 1, 0, 0, 0}, false}, + {"1.00", &Operands{1.0, 1, 2, 0, 0, 0}, false}, + {"1.3", &Operands{1.3, 1, 1, 1, 3, 3}, false}, + {"1.30", &Operands{1.3, 1, 2, 1, 30, 3}, false}, + {"1.03", &Operands{1.03, 1, 2, 2, 3, 3}, false}, + {"1.230", &Operands{1.23, 1, 3, 2, 230, 23}, false}, + {"20.0230", &Operands{20.023, 20, 4, 3, 230, 23}, false}, {20.0230, nil, true}, } for _, test := range tests { |