-
Notifications
You must be signed in to change notification settings - Fork 37
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
DMN 1.4 - 1141-feel-round-up-function #592
DMN 1.4 - 1141-feel-round-up-function #592
Conversation
@StrayAlien Thank you for the tests. Before we start reviewing the rounding tests here is the background of the proposal:
AFAIK there are already test cases for decimal() that cover some edge cases (e.g. decimal(1/3, 2.5) where the expected behavior is to use only the int value of the scale). We need to align the new tests with the existing ones to treat the edge cases in the same way (e.g. negative scales). Most of the test cases look good. So far, I spotted a few tests that need to be discussed: 0015, 0016_a, 0016_b, 0017_b. Please review them based on the above. Thank you again. |
Hi @opatrascoiu - thanks for that link and the comments. Yes, let's discuss those tests for sure. As there are quite a number of DMN 1.4 suites that dealing with scales, I'll open up a discussion so we have it all in a single place. here: #607 |
The part where the scale of -6111 is mentioned in the spec is "Table 76: Semantics of numeric functions", after the table. There is written "Scale is in the range [−6111 ..6176]". We need to clarify with RTF, why these numbers. |
Thank you @opatrascoiu. |
The issue with the "Scale is in the range [−6111 ..6176]" has been clarified in RTF. The tests look good to me. |
I would love to remove test case 006 and have the RTF add a version of the function without scale to align with ceiling and floor functions! |
After discussion, there was not an agreement if we want the test 006 in or not, so because of this, we should comment it out with a description why we did so. |
RTF issue: https://issues.omg.org/issues/INBOX-1769 |
test 6 commented out as per request |
The 11b test that call using a named parameter (only one) should have also been removed with test 6 because it is the same test but with named parameter |
11b commented out |
No description provided.