Skip to content

Commit 051a57d

Browse files
committed
fix: use negative number for testing exception
1 parent 91f42c5 commit 051a57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/prime_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_primes(self):
6363

6464
def test_not_primes(self):
6565
with self.assertRaises(AssertionError):
66-
is_prime(19)
66+
is_prime(-19)
6767
self.assertFalse(
6868
is_prime(0),
6969
"Zero doesn't have any positive factors, primes must have exactly two.",

0 commit comments

Comments
 (0)