Skip to content

Commit 29e5564

Browse files
committed
Add failing test
1 parent 146e90e commit 29e5564

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_round.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def test_round_p3109() -> None:
2727
assert round_float(fi, 232.0, RoundMode.TowardNegative) == 224.0
2828
assert round_float(fi, 232.0, RoundMode.TowardPositive) == np.inf
2929

30+
assert round_float(fi, -1.0, RoundMode.TowardNegative) == -1.0
31+
assert round_float(fi, 1.0, RoundMode.TowardPositive) == 1.0
32+
3033
assert round_float(fi, -232.0) == -224.0
3134
assert round_float(fi, -232.0, RoundMode.TiesToAway) == -np.inf
3235
assert round_float(fi, -232.0, RoundMode.TowardZero) == -224.0

0 commit comments

Comments
 (0)