diff options
author | joeybloggs <Dean.Karn@gmail.com> | 2016-08-16 14:57:16 +0300 |
---|---|---|
committer | joeybloggs <Dean.Karn@gmail.com> | 2016-08-16 14:57:16 +0300 |
commit | 867917045d972ed6a46233fa781590762798f7f6 (patch) | |
tree | 6be3765e9f4a0c9486f454d93deed93d8a6ba0a9 /en | |
parent | aaa28727a7fc0cc7add5d60b31abfe62b983bedd (diff) |
add a negative zero test ( I know no such thing right )
Diffstat (limited to 'en')
-rw-r--r-- | en/en_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/en/en_test.go b/en/en_test.go index 335feefa..df283813 100644 --- a/en/en_test.go +++ b/en/en_test.go @@ -33,6 +33,16 @@ func TestCurrency(t *testing.T) { v: 3, expected: "-$221,123,456.564", }, + { + num: 0, + v: 2, + expected: "$0.00", + }, + { + num: -0, + v: 2, + expected: "$0.00", + }, } trans := New() @@ -72,6 +82,11 @@ func TestAccounting(t *testing.T) { v: 3, expected: "($221,123,456.564)", }, + { + num: -0, + v: 2, + expected: "$0.00", + }, } trans := New() |