Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Removed doctests.
  • Loading branch information
frangiz committed Aug 29, 2020
commit 057aedafe404d944fc41aab88aa584e5650e807a
9 changes: 0 additions & 9 deletions maths/prime_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ def prime_check(number: int) -> bool:
Check to See if a Number is Prime.

A number is prime if it has exactly two dividers: 1 and itself.
>>> prime_check(3)
True
>>> prime_check(-1)
False
>>> prime_check(2*21)
False
"""
if number < 2:
# Negatives, 0 and 1 are not primes
Expand Down Expand Up @@ -62,6 +56,3 @@ def test_not_primes(self):

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

import doctest
doctest.testmod()