gitgabrio commented on code in PR #6389:
URL:
https://github.com/apache/incubator-kie-drools/pull/6389#discussion_r2179859138
##########
kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/RangeFunctionTest.java:
##########
@@ -356,6 +356,26 @@ void nodesEndpointsAscendant_True() {
assertThat(rangeFunction.nodesValueRangeAreAscending(left, right))
.withFailMessage("P2DT20H14M - P2DT20H15M")
.isTrue();
+ left = new NullNode("null");
Review Comment:
@yesamer @baldimir
here's the issue I wanted to highlight:
IIRC, NullNode are semantically valid value for one - or both - of the range
ends.
But, looking this code, it seems that whenever there is a `NullNode`, the
range would be invalid, since in either case `nodesValueRangeAreAscending`
would fail.
Am I misreading/misunderstanding something here ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]