Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expression evaluator fails comparing two array with same content #243

Open
temi opened this issue Apr 16, 2024 · 0 comments
Open

expression evaluator fails comparing two array with same content #243

temi opened this issue Apr 16, 2024 · 0 comments
Milestone

Comments

@temi
Copy link
Contributor

temi commented Apr 16, 2024

If two arrays have same content but different order, deepEqual returns false.

examples

ar1 = [1, 2, 3]
ar2 = [3,1,2]

actual

assert(deepEqual(ar1, ar2), false)

expected

true

temi added a commit that referenced this issue Apr 16, 2024
- fixes unsorted array comparison
temi added a commit that referenced this issue Apr 18, 2024
- added config option to specify if sorting is required
- refactored code
@chrisala chrisala added this to the 6.3 milestone Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants