Closed StrayAlien closed 11 months ago
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.
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.
@baldimir I raised two issues with RTF to discuss. See https://github.com/dmn-tck/tck/discussions/607
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
@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.