test_projekt

This is the test of projekt.py.

 1"""This is the test of projekt.py."""
 2from projekt import is_prime, primes_sieve
 3
 4
 5def test_is_prime():
 6    """This is test function of is_prime."""
 7    assert is_prime(73939133)
 8    assert not is_prime(228)
 9    assert not is_prime(-10)
10
11
12def test_primes_sieve():
13    """This is test function of prime_sieve."""
14    assert not primes_sieve(6)
15    assert not primes_sieve(-12)
16    assert primes_sieve(67)
def test_is_prime():
 6def test_is_prime():
 7    """This is test function of is_prime."""
 8    assert is_prime(73939133)
 9    assert not is_prime(228)
10    assert not is_prime(-10)

This is test function of is_prime.

def test_primes_sieve():
13def test_primes_sieve():
14    """This is test function of prime_sieve."""
15    assert not primes_sieve(6)
16    assert not primes_sieve(-12)
17    assert primes_sieve(67)

This is test function of prime_sieve.