(value string, scale int32)
| 26 | ) |
| 27 | |
| 28 | func mustDecimal(value string, scale int32) Decimal { |
| 29 | unscaled, ok := new(big.Int).SetString(value, 10) |
| 30 | if !ok { |
| 31 | panic("invalid decimal test value: " + value) |
| 32 | } |
| 33 | return NewDecimal(unscaled, scale) |
| 34 | } |
| 35 | |
| 36 | func TestDecimalRoundTrip(t *testing.T) { |
| 37 | values := []Decimal{ |
no test coverage detected