mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix(formatter): exclude leading plus signs from comma groups (#382)
This commit is contained in:
1 parent
eb3b1e33d2
commit
7c77aa00fb
2 files changed
+7
-7
No files matched your search
@@ -11,6 +11,9 @@ func TestComma(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
assert := internal.NewAssert(t, "TestComma")
|
||||
assert.Equal("+123", Comma("+123", ""))
|
||||
assert.Equal("+123,456", Comma("+123456", ""))
|
||||
assert.Equal("$+123,456.78", Comma("+123456.78", "$"))
|
||||
|
||||
assert.Equal("", Comma("", ""))
|
||||
assert.Equal("", Comma("aa", ""))
|
||||
|
||||
Reference in new issue
Block a user