Update shopspring decimal integration test

New version of shopspring/decimal improves precision. This broke a test.
pull/401/head
Jack Christensen 2018-03-08 07:40:25 -05:00
parent b931b56bf6
commit b0c9bbbf71
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func TestNumericSet(t *testing.T) {
{source: float64(1000), result: &shopspring.Numeric{Decimal: mustParseDecimal(t, "1000"), Status: pgtype.Present}},
{source: float64(1234), result: &shopspring.Numeric{Decimal: mustParseDecimal(t, "1234"), Status: pgtype.Present}},
{source: float64(12345678900), result: &shopspring.Numeric{Decimal: mustParseDecimal(t, "12345678900"), Status: pgtype.Present}},
{source: float64(12345.678901), result: &shopspring.Numeric{Decimal: mustParseDecimal(t, "12345.678901"), Status: pgtype.Present}},
{source: float64(1.25), result: &shopspring.Numeric{Decimal: mustParseDecimal(t, "1.25"), Status: pgtype.Present}},
}
for i, tt := range successfulTests {