Skip to content

Commit 417ff7f

Browse files
committed
update TestPower
1 parent 4c093bb commit 417ff7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/expression/function/sqrt_power_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func TestPower(t *testing.T) {
8989
{"Base and exp are valid float strings truncated", types.Text, sql.NewRow("1.2abc", "2.3abc"), 1.5209567545525318, false},
9090
{"Base and exp are valid scientific float notation strings truncated", types.Text, sql.NewRow("0.12e1asdf", "+23e-1asdf"), 1.5209567545525318, false},
9191

92-
{"positive inf", types.Float64, sql.NewRow(2, math.Inf(1)), nil, false},
93-
{"negative inf", types.Float64, sql.NewRow(2, math.Inf(1)), nil, false},
92+
{"positive inf", types.Float64, sql.NewRow(2, math.Inf(1)), nil, true},
93+
{"negative inf", types.Float64, sql.NewRow(2, math.Inf(1)), nil, true},
9494
}
9595
for _, tt := range testCases {
9696
f := NewPower(

0 commit comments

Comments
 (0)