def test_isprime_float_1():
    assert is_prime(6.1) == False
def test_isprime_float_4():
    assert is_prime(3.0) == True
def test_isprime_neg_1():
    assert is_prime(-2) == None
def test_isprime_float_3():
    assert is_prime(2.0) == True
def test_isprime_float_2():
    assert is_prime(19.01) == False
Exemple #6
0
def test_isprime_1():
    for i in [5, 139, 631, 919]:
        assert is_prime(i) == True
Exemple #7
0
def test_isprime_float_2():
    assert is_prime(6.09) == False
Exemple #8
0
def test_isprime_float():
    assert is_prime(6.0) == False