예제 #1
0
def test_no_coins():
    assert make_change(total=125, coins=[]) == 0
예제 #2
0
def test_10__1_3():
    assert make_change(total=10, coins=[1, 3]) == 4
예제 #3
0
def test_zero():
    assert make_change(total=0, coins=[]) == 0
예제 #4
0
def test_10__1_2_5():
    assert make_change(total=10, coins=[1, 2, 5]) == 10
예제 #5
0
def test_6__2():
    assert make_change(total=6, coins=[2]) == 1
예제 #6
0
def test_5__1_2():
    assert make_change(total=5, coins=[1, 2]) == 3