Skip to content

Commit

Permalink
Separate Decimal string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAD committed Dec 9, 2024
1 parent e11ab9a commit 8d841ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion decimal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3671,13 +3671,20 @@ func TestDecimal_String(t *testing.T) {
t.Errorf("expected %s, got %s", test.expected, d.String())
}
}
}

func TestDecimal_StringWithTrailing(t *testing.T) {
type testData struct {
input string
expected string
}

defer func() {
TrimTrailingZeros = true
}()

TrimTrailingZeros = false
tests = []testData{
tests := []testData{
{"1.00", "1.00"},
{"0.00", "0.00"},
{"129.123000", "129.123000"},
Expand Down

0 comments on commit 8d841ba

Please sign in to comment.