You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This exercise has been marked as having a broken test generator. There are a lots of reasons for test generation to break for a given exercise including
New addition of new tests that example.ml does not handle correctly. All that is required here is to fix or replace the example!
Changes to the problem-specification's canonical-data.json that our test-gen cannot handle. This could be then additional of field names, changing field names, or addition of tests that not fit with Ocaml's way of doing things. The task here is figure out what changed in the problem-specification and fix or add rules to special_cases.ml.
GitHub doesn't allow for linking the diff of an individual file making the relevant canonical-data.json diff impossible to link to. It may be easier to run this in your terminal
I don't think we need a celestial_body type. The test says the name of the planet is Sun, but our Sun is not a planet it is a star. There is no consideration for anything that is not a planet.
Likely excluding this test is the best case, because currently Sun would be a compiler error, ocaml doesn't need any explicit tests to prevent or catch the input of Sun.
In order to even accept Sun as input we would need to change the everything to work with strings instead of a variant type. This would make the easiest solution to pattern match on strings instead of a variant type, which is not ideal ocaml.
Any way you chose to solve this is good by me, just consider what would be best for a person who is just starting to learn Ocaml.
This exercise has been marked as having a broken test generator. There are a lots of reasons for test generation to break for a given exercise including
example.ml
does not handle correctly. All that is required here is to fix or replace the example!canonical-data.json
that our test-gen cannot handle. This could be then additional of field names, changing field names, or addition of tests that not fit with Ocaml's way of doing things. The task here is figure out what changed in the problem-specification and fix or add rules tospecial_cases.ml
.Useful links
example.ml
canonical-data.json
special_cases.ml
GitHub doesn't allow for linking the diff of an individual file making the relevant
canonical-data.json
diff impossible to link to. It may be easier to run this in your terminalCheck List
templates/space-age/.broken
make space-age.gentest
The text was updated successfully, but these errors were encountered: