Skip to content

Commit

Permalink
Additional math.abs() test
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones committed Apr 16, 2024
1 parent 55d028e commit 1d22184
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/math_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ func TestMathRuntimeErrors(t *testing.T) {
expr: "math.bitShiftRight(1024u, -4) == 1u",
err: "math.bitShiftRight() negative offset",
},
{
expr: "math.abs(-9223372036854775808)",
err: "overflow",
},
}

env := testMathEnv(t,
Expand Down

0 comments on commit 1d22184

Please sign in to comment.