Skip to content

Commit

Permalink
fix: should support string->DOUBLE
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Aug 28, 2023
1 parent 2dee39b commit 22e377d
Show file tree
Hide file tree
Showing 8 changed files with 40,666 additions and 39,522 deletions.
3 changes: 2 additions & 1 deletion conv/j2t/conv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ func TestString2Int(t *testing.T) {
})

t.Run("option Int64AsString", func(t *testing.T) {
data := []byte(`{"Int32":"222","Int64":"333"}`)
data := []byte(`{"Int32":"222","Int64":"333", "Float64":"1.1"}`)
cv.SetOptions(conv.Options{
String2Int64: true,
})
Expand All @@ -908,6 +908,7 @@ func TestString2Int(t *testing.T) {
exp := example3.NewExampleInt2Float()
exp.Int64 = 333
exp.Int32 = 222
exp.Float64 = 1.1
act := example3.NewExampleInt2Float()
_, err = act.FastRead(out)
require.Nil(t, err)
Expand Down
36,536 changes: 18,889 additions & 17,647 deletions internal/native/avx/native_amd64.s

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions internal/native/avx/native_subr_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22,584 changes: 11,240 additions & 11,344 deletions internal/native/avx2/native_amd64.s

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions internal/native/avx2/native_subr_amd64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 22e377d

Please sign in to comment.