Skip to content

Commit b796f1e

Browse files
committed
tests/float/inf_nan_arith.py: Include -inf in argument combos.
This adds tests for, eg, -inf + inf which should be nan. Signed-off-by: Damien George <[email protected]>
1 parent 3f2c423 commit b796f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/float/inf_nan_arith.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
inf = float("inf")
44
nan = float("nan")
55

6-
values = (-2, -1, 0, 1, 2, inf, nan)
6+
values = (-2, -1, 0, 1, 2, inf, -inf, nan)
77

88
for x in values:
99
for y in values:

0 commit comments

Comments
 (0)