-
Notifications
You must be signed in to change notification settings - Fork 36
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
For loop tests in 0084-feel-for-loops.dmn #681
Comments
Hi @opatrascoiu - I was basing it on the spec text:
I guess "range" is ambiguous. The tests following those do some checking for what might be invalid ranges (like the start being lesser than the end - and so on) but not open ended. If they're contentious, I'm happy to comment them for now. Btw, if "proper" ranges are to be included there, then modifications to the spec should also consider <=10, !=10,=10 etc comparitive ranges as well. Perhaps likely to say they're not permitted. Also, worth noting is that spec text you referenced seems not to have been updated when dates where added in 1.5. |
@StrayAlien Yes, the I suggest we remove the tests and raise an RTF ticket to clarify. |
@opatrascoiu - happy to. I agree. Will do. I'll raise the ticket as well. |
We have recently merged a PR with new tests in the above file.
I believe that some of the tests are incorrect. For example,
According to the spec (10.3.2.14 For loop expression):
The above tests are incorrect (the expected value should be null) as the for loops have an iteration context made of one single expression, that is not a list, is a range. The correct syntax is 1..2 or @"1980-01-01"..@"1980-01-03" (see examples in the spec).
I am in favor of extending the spec to support the above, as they make sense, but we need to specify the semantics for open ends (e.g. (1, 2] ).
The text was updated successfully, but these errors were encountered: