This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 03d3d2f
committed
[[ Bug 22024 ]] Fix LCB's 'is among the elements of' operator
This patch fixes an issue with LCB's 'is among the elements of'
operator which causes it to return the wrong result when searching
for an array in another array.
The issue was caused by the internal __MCArrayIsEqualTo method
only using pointer equivalence to check for element equality
rather than MCValueIsEqualTo.
Additionally an explicit test for 'is among the elements of' has
been added to the array test file.1 parent 5bfa859 commit 03d3d2f
File tree
3 files changed
+17
-1
lines changed- docs/notes
- libfoundation/src
- tests/lcb/stdlib
3 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
| 732 | + | |
732 | 733 | | |
733 | 734 | | |
734 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
0 commit comments