def test_travel_price():
    assert abs(travel_price(20, 0.6, 12) - 14.4) < 0.00001
    assert abs(travel_price(105.5, 0.8, 14) - 118.16) < 0.00001
Exemplo n.º 2
0
def test_travel_price():
    assert travel_price(20, 0.6, 12) == 14.4
    assert travel_price(105.5, 0.8, 14) == 118.16
Exemplo n.º 3
0
def test_travel_price():
    assert travel_price(20, 0.6, 12) == 14.4
    assert travel_price(105.5, 0.8, 14) == 118.16