Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'en/en_test.go')
-rw-r--r--en/en_test.go15
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()