-
Notifications
You must be signed in to change notification settings - Fork 78
Adds nullable sequence and alternative support #2267
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
base: main
Are you sure you want to change the base?
Conversation
4f7430f
to
418d95b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2267 +/- ##
=======================================
Coverage 47% 47%
- Complexity 6349 6367 +18
=======================================
Files 762 762
Lines 63031 63049 +18
Branches 9400 9404 +4
=======================================
+ Hits 29926 29954 +28
+ Misses 30892 30883 -9
+ Partials 2213 2212 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The Codecov report seems to be incorrect 🤷♂️ . The lines that it's complaining about are actually covered by a combination of the existing and newly added tests. Only the |
Due to the low volume of changes in the parser, we don't run the parser test as part of the ci: |
Some assumption is not right here:
but: and AllSuiteParallel includes "parser": @RecursiveJavaOnlyTest({"basic", "concrete", "functionality", "library", "parser", "recovery", "demo", "benchmark"})
public class AllSuiteParallel {
} So what is really going on? |
@arnoldlankamp thanks for the fixes |
Hmm, I was wrong, let me see. The
as the test to run. why it ignores the others? It only selects classes with either:
Most classes in that #2269 fixes that. |
Thanks for looking into that @DavyLandman . Also I just noticed I forgot to add the new tests to the ‘ParserTest’ class. It’s been a while, since I last looked at this code 😅. I’ll try to add it this evening. |
I've updated the branch to include the fix of the unit test. So please pull @arnoldlankamp before fixing your forgotten test call. |
f9f69a1
to
5d85c06
Compare
5d85c06
to
fb064f1
Compare
No worries. I often rewrite my commit history on branches anyway, since I try to create clean delineated commits, so they can be separately applied and reverted like patches, if desired. |
I updated the parser test suite, so the newly added test cases are also executed. All the parser tests together seem to take no more than a few milliseconds to run, so enabling them shouldn't have affected build time in any noticeable way. |
I also noticed there is a Sequence3 test case lingering around. According to Git history, @jurgenvinju added this one last month. Unfortunately this test case fails, because the expected output does not to match the defined grammar. The expected result is: I'm not sure what the intend of the test case was, but if a specific fix is desired, it would be best to open a new issue for it and I'll have a look. |
@arnoldlankamp I suspect I started adding that test case Sequence3 to help fix #2212 and then forgot about it. |
Ok, other than maybe removing the Sequence3 test case and verifying my fix, this PR should be ready to merge. |
Changes the semantics related to sequences and alternatives. These now both support the case where they are empty.
This should resolve issue #2213 .