Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions maths/prime_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,11 @@

if __name__ == "__main__":
unittest.main()


def test_large_prime(self):

Check failure on line 93 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ARG001)

maths/prime_check.py:93:22: ARG001 Unused function argument: `self`
assert is_prime(999983)


def test_large_non_prime(self):

Check failure on line 97 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ARG001)

maths/prime_check.py:97:26: ARG001 Unused function argument: `self`
assert not is_prime(999999)
Loading