opencypher / openCypher

Specification of the Cypher property graph query language
http://www.opencypher.org
Apache License 2.0
841 stars 149 forks source link

Fix bug in comparison of unordered lists #557

Closed loveleif closed 1 year ago

loveleif commented 1 year ago

Fix bug in Cypher unordered list comparison.

For example, assertions like this

Then the result should be (ignoring element order for lists):
    | foo                 |
    | ['Bob', 'Carl']     |
    | ['Ada', 'Danielle'] |
    | ['Danielle']        |
    | ['Carl']            |
    | []                  |

would fail even if the results were correct:

...failed with message: 
Expected (in any order of rows):
| foo |
| ['Bob', 'Carl'] |
| ['Ada', 'Danielle'] |
| ['Danielle'] |
| ['Carl'] |
| [] |
Actual:
| foo |
| ['Carl', 'Bob'] |
| ['Ada', 'Danielle'] |
| ['Danielle'] |
| ['Carl'] |
| [] |

Trello: https://trello.com/c/m36sEKjr