Skip to content
Closed
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
11 changes: 11 additions & 0 deletions maths/prime_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,14 @@

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






def test_large_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:22: ARG001 Unused function argument: `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:22: ARG001 Unused function argument: `self`
assert is_prime(999983)

def test_large_non_prime(self):

Check failure on line 100 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ARG001)

maths/prime_check.py:100:26: ARG001 Unused function argument: `self`

Check failure on line 100 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (ARG001)

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

Check failure on line 101 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (W292)

maths/prime_check.py:101:32: W292 No newline at end of file help: Add trailing newline

Check failure on line 101 in maths/prime_check.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (W292)

maths/prime_check.py:101:32: W292 No newline at end of file help: Add trailing newline
Loading