Closed JoaquimEsteves closed 2 months ago
Thanks for opening the issue @JoaquimEsteves ! Yeah you're right checking in our current test suit we do not have a test like this. Im going to open a pr to add it!
If you'd appreciate a hand I'd love to help.
Exercism is lovely, and if I could contribute in anyway I'd be more than glad (even on such a tiny issue đŸ˜…)
@JoaquimEsteves Yeah sure! go ahead with the PR then!
First of all, Thank you for your work on such a lovely website.
Back on topic, I have some nitpicks with the
need-for-speed
exercise.Consider the following iterations 2 & 3
The tests will pass if we implement the
batteryDrained
method either like soOr, more correctly like so:
Imagine a Car that is initialized with a
batteryDrain
larger than50
. Logically this car should only be driven once, as the remaining battery is not enough to execute a full drive.I'd consider adding a simple test that would check this logic like so: