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