fix: merge tuple produced invalid compare expression
The error was produced by the assumption that (2, 1) > (1, 2) is equivalent to (2 > 1) and (1 > 2). That assumption was incorrect, so we don't merge AND chains for any operators other than Eq and NotEq.
Showing
- src/executor/tests.rs 1 addition, 1 deletionsrc/executor/tests.rs
- src/ir/transformation/merge_tuples.rs 54 additions, 65 deletionssrc/ir/transformation/merge_tuples.rs
- src/ir/transformation/merge_tuples/tests.rs 7 additions, 6 deletionssrc/ir/transformation/merge_tuples/tests.rs
- test_app/test/integration/api_test.lua 15 additions, 0 deletionstest_app/test/integration/api_test.lua
Loading
Please register or sign in to comment