コード例 #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
コード例 #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
コード例 #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
コード例 #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