Skip to content

Commit 8d03afe

Browse files
committed
More tests
1 parent e669724 commit 8d03afe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/test_round.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ 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-
3330
assert round_float(fi, -232.0) == -224.0
3431
assert round_float(fi, -232.0, RoundMode.TiesToAway) == -np.inf
3532
assert round_float(fi, -232.0, RoundMode.TowardZero) == -224.0
@@ -50,8 +47,10 @@ def test_round_p3109() -> None:
5047
(
5148
(p4min, p4min),
5249
(p4min / 4, 0),
50+
(p4min / 2, 0),
5351
(-p4min, -p4min),
5452
(-p4min / 4, 0.0),
53+
(-p4min / 2, 0.0),
5554
(64.0, 64.0),
5655
(63.0, 60.0),
5756
(62.0, 60.0),
@@ -65,8 +64,10 @@ def test_round_p3109() -> None:
6564
(
6665
(p4min, p4min),
6766
(p4min / 4, p4min),
67+
(p4min / 2, p4min),
6868
(-p4min, -p4min),
6969
(-p4min / 4, 0.0),
70+
(-p4min / 2, 0.0),
7071
(64.0, 64.0),
7172
(63.0, 64.0),
7273
(62.0, 64.0),
@@ -80,8 +81,10 @@ def test_round_p3109() -> None:
8081
(
8182
(p4min, p4min),
8283
(p4min / 4, 0),
84+
(p4min / 2, 0),
8385
(-p4min, -p4min),
8486
(-p4min / 4, -p4min),
87+
(-p4min / 2, -p4min),
8588
(64.0, 64.0),
8689
(63.0, 60.0),
8790
(62.0, 60.0),

0 commit comments

Comments
 (0)