Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
si3nloong committed Sep 28, 2024
1 parent 1e6b7a6 commit 344edb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequel/types/int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func TestInteger(t *testing.T) {
t.Run("int16", func(t *testing.T) {
var i16 int16
v := Integer(&i16)
require.NoError(t, v.Scan(-68))
require.NoError(t, v.Scan(int64(-68)))
require.Equal(t, int16(-68), v.Interface())
})

t.Run("int32", func(t *testing.T) {
var i32 int32
v := Integer(&i32)
require.NoError(t, v.Scan(-128))
require.NoError(t, v.Scan(int64(-128)))
require.Equal(t, int32(-128), v.Interface())
})
})
Expand Down

0 comments on commit 344edb1

Please sign in to comment.