Skip to content
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

Add more tests for the English Wiktionary parser #43

Merged
merged 6 commits into from
Jul 8, 2015

Conversation

Joshua-Chin
Copy link
Contributor

No description provided.

@@ -366,7 +372,7 @@ def parse_structured_entry(self, structure):
print(traceback.format_exc())
failures += 1

assert failures <= 1
assert failures <= 1 # Why is 1 failure ok?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the topic of "Why is 1 failure ok?": if you can get it to run with 0 failures, by all means do so.

The unpredictability of what Wiktionary throws at us has made this unachievable so far, but if a strangely-formatted entry can just quietly produce no assertions instead of breaking the parser, that would be great.

The main concern would be that a change to the code might make the failures disappear because they're "succeeding" in producing nonsense assertions. This is why unit tests are nice to have, though.

rspeer pushed a commit that referenced this pull request Jul 8, 2015
Add more tests for the English Wiktionary parser
@rspeer rspeer merged commit dfa9540 into version5.4 Jul 8, 2015
@rspeer rspeer deleted the wiktionary-tests branch July 8, 2015 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants