diff --git a/store/tokens_test.go b/store/tokens_test.go index 625a65d..34cca1e 100644 --- a/store/tokens_test.go +++ b/store/tokens_test.go @@ -22,6 +22,13 @@ func TestTruncateDecimalString(t *testing.T) { want: "4.00", expectError: false, }, + { + name: "precision test", + input: "2.1", + decimalPlaces: 2, + want: "2.10", + expectError: false, + }, { name: "single decimal", input: "4.1",