-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests fail for robot-simulator
#29
Comments
Alright so I've run locally the test runner on this and it appears the issue comes from the fact that the automatic extractor of test code does not work with this Extracted test code:
[]
End of extracted test code @ceddlyburge Could you have a look at this. My intuition is that either the test file does not follow a structure that your extractor can extract, or there is a bug somewhere. Thanks for the report @jiegillet ! |
I'll take a look ... |
I've also looked at things (and managed to run the tests in docker, yay!) and I think I've identified the issue. Your intuition was correct. The tests for tests : Test
tests =
describe "RobotSimulator"
[ describe "init"
(let
robot =
defaultRobot
in
[ test "coordinates" <|
\() -> Expect.equal { x = 0, y = 0 } robot.coordinates
, test "bearing" <|
\() -> Expect.equal North robot.bearing
]
)
, ... The test extractor cannot deal with the Solution 1: patch the test extractor so that it copy pastes the I need to amend my initial comment:
Obviously the code I was trying to run had some errors, the example code passes all the tests, doesn't ask for the test snippets and all is fine. |
I threw a quick script together to do that locally, it seems that all other exercises are OK. |
I've created a new issue for the test runner to handle let expressions, and I think the quickest thing to fix the robot simulator now is to refactor them to avoid the let expression, so I'll do that ... |
@ceddlyburge if you could also mention the test limitation in the guideline https://github.com/exercism/elm/blob/main/docs/contributing-concept.md would be awesome. |
I was trying to solve
robot-simulator
, but the tests keep failing like soFor the solution
Or any code that compiles. When the code doesn't compile, the test runners shows the compiler errors like usual.
The text was updated successfully, but these errors were encountered: