def test_handla_vara_som_inte_finns():
    assert_equals(handla(9, 7), "Varunummer saknas")
def test_handla_festis_utan_dricks():
    assert_equals(handla(2, 8), "Festis")
def test_handla_festis_med_for_lite_pengar():
    assert_equals(handla(2, 7), "Tyvörr för lite pengar")
def test_handla_choklad_med_for_lite_pengar():
    assert_equals(handla(1, 9), "Tyvörr för lite pengar")
def test_handla_festis_med_dricks():
    assert_equals(handla(2, 11), "Festis Tack,Tack")
def test_handla_choklad_med_dricks():
    assert_equals(handla(1, 11), "Choklad Tack,Tack")
def test_handla_choklad_utan_dricks():
    assert_equals(handla(1, 10), "Choklad")
Exemplo n.º 8
0
def test_handla_vara_som_inte_finns():
    assert_equals(handla(9, 7), "Varunummer saknas")
def test_handla_requires_two_arguments2():
    handla()
Exemplo n.º 10
0
def test_handla_festis_utan_dricks():
    assert_equals(handla(2, 8), "Festis")
Exemplo n.º 11
0
def test_handla_festis_med_for_lite_pengar():
    assert_equals(handla(2, 7), "Tyvärr för lite pengar")
Exemplo n.º 12
0
def test_handla_festis_med_dricks():
    assert_equals(handla(2, 11), "Festis Tack,Tack")
Exemplo n.º 13
0
def test_handla_choklad_med_for_lite_pengar():
    assert_equals(handla(1, 9), "Tyvärr för lite pengar")
Exemplo n.º 14
0
def test_handla_choklad_utan_dricks():
    assert_equals(handla(1, 10), "Choklad")
Exemplo n.º 15
0
def test_handla_choklad_med_dricks():
    assert_equals(handla(1, 11), "Choklad Tack,Tack")
Exemplo n.º 16
0
def test_handla_requires_two_arguments2():
    handla()