From b0c9bbbf718e5f27ca1cb0cf0f02747f7ca49b60 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 8 Mar 2018 07:40:25 -0500 Subject: [PATCH] Update shopspring decimal integration test New version of shopspring/decimal improves precision. This broke a test. --- pgtype/ext/shopspring-numeric/decimal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgtype/ext/shopspring-numeric/decimal_test.go b/pgtype/ext/shopspring-numeric/decimal_test.go index 79121ef3..b237478d 100644 --- a/pgtype/ext/shopspring-numeric/decimal_test.go +++ b/pgtype/ext/shopspring-numeric/decimal_test.go @@ -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 {