feat: support label value with commas
Change-Id: I9f4575c163da154f80ea2657108f26576133bfc6
This commit is contained in:
parent
d25a827706
commit
10a60e072a
3 changed files with 99 additions and 0 deletions
|
|
@ -86,4 +86,9 @@ func TestFormatter(t *testing.T) {
|
|||
"a",
|
||||
"b",
|
||||
}, "")(0, 10, 0.12))
|
||||
|
||||
assert.Equal("10,000.01", NewLabelFormatter([]string{
|
||||
"a",
|
||||
"b",
|
||||
}, "{e}")(0, 10000.01, 0))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue