Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 26, 2024
1 parent 8ba46d9 commit fab0b1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/typing/values/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"testing"
"time"

"github.com/cockroachdb/apd/v3"
"github.com/stretchr/testify/assert"

"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/numbers"
"github.com/artie-labs/transfer/lib/ptr"
"github.com/artie-labs/transfer/lib/typing"
"github.com/artie-labs/transfer/lib/typing/columns"
Expand Down Expand Up @@ -123,9 +123,7 @@ func TestToString(t *testing.T) {
assert.Equal(t, "123.45", val)

// Decimals
_decimal, _, err := apd.NewFromString("585692791691858.25")
assert.NoError(t, err)
value := decimal.NewDecimal(ptr.ToInt(38), _decimal)
value := decimal.NewDecimal(ptr.ToInt(38), numbers.MustParseDecimal("585692791691858.25"))
val, err = ToString(value, columns.Column{KindDetails: typing.EDecimal}, nil)
assert.NoError(t, err)
assert.Equal(t, "585692791691858.25", val)
Expand Down

0 comments on commit fab0b1b

Please sign in to comment.