1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 16:22:26 +08:00

fix: fix bug of Comma function

This commit is contained in:
dudaodong
2023-04-05 14:26:42 +08:00
parent 046f3e0bf9
commit 3685aee02b
3 changed files with 112 additions and 50 deletions

View File

@@ -23,6 +23,6 @@ func TestComma(t *testing.T) {
assert.Equal("¥12,345", Comma(12345, "¥"))
assert.Equal("12,345.6789", Comma(12345.6789, ""))
assert.Equal("12,345.6789", Comma(+12345.6789, ""))
// assert.Equal("12,345,678.9", Comma(12345678.9, ""))
assert.Equal("12,345,678.9", Comma(12345678.9, ""))
assert.Equal("123,456,789,000", Comma(123456789000, ""))
}