File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/org/launchcode/java/demos/testing Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,4 @@ public void drive(double miles)
8282 this .odometer += milesAbleToTravel ;
8383 }
8484
85- public void addGas (double gas ) {
86- this .setGasTankLevel (gas + this .getGasTankLevel ());
87- }
8885}
Original file line number Diff line number Diff line change 11package org .launchcode .java .demos .testing .test ;
22
33public class CarTest {
4+
5+ //TODO: add emptyTest so we can configure our runtime environment (remove this test before pushing to your personal GitLab account)
6+ //TODO: constructor sets gasTankLevel properly
7+ //TODO: gasTankLevel is accurate after driving within tank range
8+ //TODO: gasTankLevel is accurate after attempting to drive past tank range
9+ //TODO: can't have more gas than tank size, expect an exception
10+
411}
You can’t perform that action at this time.
0 commit comments