Example #1
0
def test_compute_fuel_requirement_should_return_4_when_mass_is_12():
    fuel_required = compute_fuel_requirement(mass=12)
    assert fuel_required == 2
Example #2
0
def test_compute_fuel_requirement_should_return_33583_when_mass_is_100756():
    fuel_required = compute_fuel_requirement(mass=100756)
    assert fuel_required == 33583
Example #3
0
def test_compute_fuel_requirement_should_return_0_when_mass_is_0():
    fuel_required = compute_fuel_requirement(mass=0)
    assert fuel_required == 0
Example #4
0
def test_compute_fuel_requirement_should_return_654_when_mass_is_1969():
    fuel_required = compute_fuel_requirement(mass=1969)
    assert fuel_required == 654