Exemple #1
0
def test_returns_correct_result():
    assert my_first_kata(3, 5) == 3 % 5 + 5 % 3
    assert my_first_kata(314, 107) == 107 % 314 + 314 % 107
    assert my_first_kata(1, 32) == 1 % 32 + 32 % 1
Exemple #2
0
def test_first_argument_is_zero():
    assert my_first_kata(0, 1) == False
Exemple #3
0
def test_second_argument_is_zero():
    assert my_first_kata(1, 0) == False
Exemple #4
0
def test_second_argument_is_collection():
    assert my_first_kata("hello", {}) == False
Exemple #5
0
def test_first_argument_is_collection():
    assert my_first_kata([], "pippi") == False
Exemple #6
0
def test_boolean_arguments():
    assert my_first_kata(True, True) == False
Exemple #7
0
def test_second_argument_is_not_number():
    assert my_first_kata(67, "bye") == False
Exemple #8
0
def test_first_argument_is_not_number():
    assert my_first_kata("hello", 3) == False
Exemple #9
0
def test_big_arguments():
    assert my_first_kata(19483, 9) == 9 % 19483 + 19483 % 9
Exemple #10
0
def test_negative_arguments():
    assert my_first_kata(-1, -1) == -1 % -1 + -1 % -1