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

Tests for regex support in the valid key #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Tests for regex support in the valid key #86

wants to merge 2 commits into from

Conversation

jocelynke
Copy link

Only tested on cpp_stl_11, python, java, go, js.

Only tested on cpp_stl_11, python, java, go, js.
formats/valid_regex.ksy Outdated Show resolved Hide resolved
spec/ks/valid_regex.kst Outdated Show resolved Hide resolved
@GreyCat
Copy link
Member

GreyCat commented Apr 3, 2020

Overall note: we're testing only successful cases here, which makes the test itself effectively a no-op — i.e. just a successful parsing result is ok.

What's much more interesting is to test non-matching cases, i.e. see all valid_fail_* tests, which should throw an exception.

@jocelynke
Copy link
Author

Overall note: we're testing only successful cases here, which makes the test itself effectively a no-op — i.e. just a successful parsing result is ok.

What's much more interesting is to test non-matching cases, i.e. see all valid_fail_* tests, which should throw an exception.

I added a test for that

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.

2 participants