예제 #1
0
def test_first():
    assert reciprocal(1) == 1
예제 #2
0
def test_reciprocal_0():
    assert reciprocal(0) == "error"
예제 #3
0
def test_reciprocal_minus_2():
    assert reciprocal(-2) == -0.5
예제 #4
0
def test_reciprocal_1():
    assert reciprocal(1) == 1
def test_reciprocal(x, y):
    assert reciprocal(x) == y