Skip to content

Commit 52814bb

Browse files
author
James Cor
committed
more tests
1 parent 7fce5df commit 52814bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/expression/function/ceil_round_floor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ func TestFloor(t *testing.T) {
9292
err *errors.Kind
9393
}{
9494
{"float64 is nil", types.Float64, sql.NewRow(nil), nil, nil},
95-
{"float64 is ok", types.Float64, sql.NewRow(5.8), float64(5), nil},
95+
{"float64 is ok", types.Float64, sql.NewRow(5.8), int64(5), nil},
9696
{"float32 is nil", types.Float32, sql.NewRow(nil), nil, nil},
97-
{"float32 is ok", types.Float32, sql.NewRow(float32(5.8)), float64(5), nil},
97+
{"float32 is ok", types.Float32, sql.NewRow(float32(5.8)), int64(5), nil},
9898
{"int32 is nil", types.Int32, sql.NewRow(nil), nil, nil},
9999
{"int32 is ok", types.Int32, sql.NewRow(int32(6)), int64(6), nil},
100100
{"int64 is nil", types.Int64, sql.NewRow(nil), nil, nil},

0 commit comments

Comments
 (0)