[jboss-jira] [JBoss JIRA] (DROOLS-4973) Defined DMN collection unary checks do not pass

Yeser Amer (Jira) issues at jboss.org
Mon Jan 27 10:44:50 EST 2020


    [ https://issues.redhat.com/browse/DROOLS-4973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957461#comment-13957461 ] 

Yeser Amer commented on DROOLS-4973:
------------------------------------

[~jomarko] [~danielezonca] The cause of the issue can be explained with the current logic used by FEEL evaluator to compare two collections. According to this logic, 2 collections are equals if they contain the same elements IN THE SAME ORDER. You can find this logic in EvalHelper.java class, line 651. 
Then, to solve the first failed test in the reported case, simply change "?=[{Price:3300,Name:"CAR"}, {Price:2000,Name:"PC"}]" to "?=[{Price:2000,Name:"PC"},{Price:3300,Name:"CAR"}]" and the test will pass with success. Don't know the reason of this logic in FEEL, if is expected or not.



> Defined DMN collection unary checks do not pass
> -----------------------------------------------
>
>                 Key: DROOLS-4973
>                 URL: https://issues.redhat.com/browse/DROOLS-4973
>             Project: Drools
>          Issue Type: Bug
>          Components: Scenario Simulation and Testing
>    Affects Versions: 7.32.0.Final
>            Reporter: Jozef Marko
>            Assignee: Daniele Zonca
>            Priority: Critical
>              Labels: drools-tools
>         Attachments: MySpace_eshop.zip
>
>
> Import the attached project and click Build, then Test. 
> The re are defined 2 groups of 2 equivalent tests. In each group one test has a collection unary check defined with UI editor and one test defined a collection unary check with textual editor. The issue is tests with the unary check defined via textual editor do not pass.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list