-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Fix ForClause PositionalVar empty sequence handling #5589
Fix ForClause PositionalVar empty sequence handling #5589
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really great, thank you for your contribution! What a 🎁
Would it be OK for me to fix the formatting and commit message format or do you want to do it?
bca2b7a
to
a582546
Compare
Hi @line-o, |
@Robin6939 Wonderful to see that you made some progress after our call yesterday... Quick work! Regards formatting, IntelliJ has a Java code formatter on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small formatting issue.
a582546
to
def5a78
Compare
@@ -156,3 +156,17 @@ function flwor:allowing-empty($n as xs:integer) { | |||
return concat("[", $x, "]") | |||
}; | |||
|
|||
declare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a test that shows the correct behaviour if allowing empty
is not set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't any right now
Should I add them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a few suggestions and questions.
def5a78
to
f7c3016
Compare
Quality Gate passedIssues Measures |
Description:
Resolved an issue where ForClause's PositionalVar incorrectly returned values when faced with an empty sequence while allowing emptiness. This adjustment ensures accurate handling of edge cases in sequence evaluations, aligning behavior with expected standards.
Reference:
#5235
Tests:
Added tests which verifies the same