summaryrefslogtreecommitdiff
path: root/numfmt_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'numfmt_test.go')
-rw-r--r--numfmt_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/numfmt_test.go b/numfmt_test.go
index 80534e9..7dc3f77 100644
--- a/numfmt_test.go
+++ b/numfmt_test.go
@@ -996,6 +996,14 @@ func TestNumFmt(t *testing.T) {
{"44896.18957170139", "[$-435]mmmmm dd yyyy h:mm AM/PM", "D 01 2022 4:32 AM"},
{"text_", "General", "text_"},
{"text_", "\"=====\"@@@\"--\"@\"----\"", "=====text_text_text_--text_----"},
+ {"0.0450685976001E+21", "0_);[Red]\\(0\\)", "45068597600100000000"},
+ {"8.0450685976001E+21", "0_);[Red]\\(0\\)", "8045068597600100000000"},
+ {"8.0450685976001E-21", "0_);[Red]\\(0\\)", "0"},
+ {"8.04506", "0_);[Red]\\(0\\)", "8"},
+ {"-0.0450685976001E+21", "0_);[Red]\\(0\\)", "(45068597600100000000)"},
+ {"-8.0450685976001E+21", "0_);[Red]\\(0\\)", "(8045068597600100000000)"},
+ {"-8.0450685976001E-21", "0_);[Red]\\(0\\)", "(0)"},
+ {"-8.04506", "0_);[Red]\\(0\\)", "(8)"},
} {
result := format(item[0], item[1])
assert.Equal(t, item[2], result, item)