Esempio n. 1
0
def test_one_plus_two():
    numbers = [100, 1, 5, 2, 6, 8]
    target = 3
    calc = hiker.countdown(numbers, target)
    assert target == eval(calc)
Esempio n. 2
0
def test_three_time_hundred():
    numbers = [100, 3, 5, 2, 6, 8]
    target = 300
    calc = hiker.countdown(numbers, target)
    assert target == eval(calc)
Esempio n. 3
0
def test_addition_3_elems():
    numbers = [100, 3, 5, 2, 6, 9]
    target = 108
    calc = hiker.countdown(numbers, target)
    assert target == eval(calc)
Esempio n. 4
0
def test_target_in_the_list():
    numbers = [100, 3, 5, 2, 6, 8]
    target = 3
    calc = hiker.countdown(numbers, target)
    assert target == eval(calc)