-
-
Notifications
You must be signed in to change notification settings - Fork 52
Broken test-generation for exercise word-count #476
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
Comments
Hello ! I'm really interested into contributing on this project, but I don't know if this issue is still relevant. Is it a good entry point into the dev community ? Thanks by advance ! |
Hi @blastoncrush, yes, this is still an issue. If you'd like to work on this one you'll need to also see how the tests are generated in the README.md. Let me know if you'd like to work on this one or have any further questions. |
Hi @kahgoh, I have run all tests on the last build with make test and they all passed, maybe there is something i miss? |
Did you regenerate the tests after deleting
The tests should fail for |
Thanks for the response, @kahgoh, now it fails (that sounds weird ik) |
I got it. On the file exercises/practice/word-count/test.ml, on line 42, the string is written "'First: don't laugh. Then: don't cry. You're getting it.'" with additionnal ' at the beginning and the end. Simply delete then (they were not intended fix the issue |
So I fixed problem-specifications/exercises/word-count/canonical-data.json on line 135 |
Sorry I think might not have provided enough guidance earlier - there is nothing wrong with the The However, tests sometimes gets updated. For example, in exercism/problem-specifications#1982, the "with apostrophes" test case was "updated". Notice the one of the "with apostrophes" test case has a In the OCaml track, we use a test generator to turn the data into tests. I think the real problem to fix here is that the test generator doesn't honor recognize the From the sounds of your comment in #471, I suspect updating the test generator to handle the |
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/word-count/.broken
make word-count.gentest
The text was updated successfully, but these errors were encountered: