From f59be207f1ea0fbbc3436cae08921888e3065777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yavuz=20Deliba=C5=9F=C4=B1?= Date: Thu, 2 Feb 2017 13:48:19 +0300 Subject: [PATCH] unit tests for prime numbers. --- solutions/prime_number/test_yavuzdelibasi.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 solutions/prime_number/test_yavuzdelibasi.py diff --git a/solutions/prime_number/test_yavuzdelibasi.py b/solutions/prime_number/test_yavuzdelibasi.py new file mode 100644 index 0000000..d503d74 --- /dev/null +++ b/solutions/prime_number/test_yavuzdelibasi.py @@ -0,0 +1,11 @@ +from prime import is_prime +import pytest + +def test_prime(): + assert is_prime(7) == True + +def test_big_number(): + assert is_prime(1559) == True + +def test_not_prime(): + assert is_prime(20) == False