Created
October 26, 2025 22:21
-
-
Save mcsee/070f75a570089c57742c2c5b88655e3e to your computer and use it in GitHub Desktop.
This gist belongs to Clean Code Cookbook http://cleancodecookbook.com By Maximiliano Contieri http://maximilianocontieri.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment