-
-
Notifications
You must be signed in to change notification settings - Fork 738
Closed
Labels
x:action/improveImprove existing functionality/contentImprove existing functionality/contentx:knowledge/elementaryLittle Exercism knowledge requiredLittle Exercism knowledge requiredx:module/concept-exerciseWork on Concept ExercisesWork on Concept Exercisesx:size/smallSmall amount of workSmall amount of workx:type/contentWork on content (e.g. exercises, concepts)Work on content (e.g. exercises, concepts)
Description
I was mentoring this problem, and the only places where the expected behavior of the drive method was specified were in comments in a code block in the instructions or through reverse engineering the test case. The code block says:
ProductionRemoteControlCar prod = new ProductionRemoteControlCar();
TestTrack.race(prod);
ExperimentalRemoteControlCar exp = new ExperimentalRemoteControlCar();
TestTrack.race(exp);
prod.getDistanceTravelled();
// => 10
exp.getDistanceTravelled();
// => 20Even then, it is only through indirect inference that the desired behavior can be understood.
I think it should be explicitly specified that ProductionRemoteControlCar.drive() should travel 10 units and ExperimentalRemoteControlCar.drive() should travel 20.
I would be happy to make these changes myself if this issue gets assigned to me.
Metadata
Metadata
Assignees
Labels
x:action/improveImprove existing functionality/contentImprove existing functionality/contentx:knowledge/elementaryLittle Exercism knowledge requiredLittle Exercism knowledge requiredx:module/concept-exerciseWork on Concept ExercisesWork on Concept Exercisesx:size/smallSmall amount of workSmall amount of workx:type/contentWork on content (e.g. exercises, concepts)Work on content (e.g. exercises, concepts)