-
Notifications
You must be signed in to change notification settings - Fork 40
DMN 1.5 - feel 'in' additions for '=' and '!='. Plus ... #668
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: master
Are you sure you want to change the base?
Conversation
…l enpoint ranges tests as per: dmn-tck#393 (comment). Those null range tests were commented out due to pre-1.5 ranges not permitting expressions as endpoints. They may or may not be correct in the light of the new changes.
I believe some tests involving ranges with null endpoints do not follow the semantics of DMN 1.5. For example,
According to
According to these tables 5 in (null..10] <=> 5 > null and 5 <= 10 <=> null and true <=> null (3-value logic) According to Table 55, condition 5 in (null..10] is not equivalent with 5 in <=10. |
I have to admit ... I am now really pretty confused at to how null in ranges and the 'unary comparison' style psuedo-ranges are supposed to behave. And what is equal to what, and what 'undefined' is. And whether attempting to get a value that is undefined actually should be an error .. and give null .. etc. Like, we have tests in the equivalence suite asserting that Raised: #663 .. to discuss. |
@StrayAlien I checked the latest status of the PR. We are very close to merging :) I believe the expected value for tests All the others look good to me. |
I agree with Octavian interpretation of the result of |
@StrayAlien could you please take a look, based on the last comments from Simon and Octavian? |
We can comment out the tests we don't have agreement on and merge. |
@StrayAlien please review. |
"undefined" term is not properly defined in the specification. It may need more discussion in the RTF group. The current status of the spec implies meaning described in the #668 (comment). |
uncommenting null endpoint ranges tests as per: #393 (comment).
The '=' and '!=' get exercised for each data type.
Those null range tests were commented out due to pre-1.5 ranges not permitting expressions as endpoints. They may or may not be correct in the light of the new changes.
It is not clear to me whether
[null..10]
is the same as<=10
, or a null endpoint should now be treated as an error condition.