Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)