Skip to content

Commit b8fde5b

Browse files
committed
Add a check that we aren't missing any tests.
1 parent d41ca53 commit b8fde5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/flint/test/test_arb.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,14 @@ def test_arb_sum():
319319
true_interval = arb(6, 1.5) # [4.5, 7.5]
320320
assert true_interval in actual
321321

322+
def test_no_tests_missing():
323+
"""Make sure all arb tests are included in all_tests."""
324+
test_funcs = {f for name, f in globals().items() if name.startswith("test_")}
325+
untested = test_funcs - set(all_tests)
326+
assert not untested, f"Untested functions: {untested}"
327+
322328
all_tests = [
329+
test_no_tests_missing,
323330
test_from_int,
324331
test_from_float,
325332
test_from_float_inf,

0 commit comments

Comments
 (0)