Skip to content

Instantly share code, notes, and snippets.

@mcsee
Created October 26, 2025 22:21
Show Gist options
  • Save mcsee/070f75a570089c57742c2c5b88655e3e to your computer and use it in GitHub Desktop.
Save mcsee/070f75a570089c57742c2c5b88655e3e to your computer and use it in GitHub Desktop.

Revisions

  1. mcsee created this gist Oct 26, 2025.
    10 changes: 10 additions & 0 deletions race_simulator_many_asserts.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    def test_car_performance():
    car = Formula1Car("Red Bull")
    car.set_speed(320)
    assert car.speed == 320
    car.accelerate(10)
    assert car.speed == 330
    car.brake(50)
    assert car.speed == 280
    car.change_tire("soft")
    assert car.tire == "soft"