You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dug a bit, and I realized that the difference is triggered by the first element actually, the object containing the c key with an array value.
The first array that are compared for deep equality are [ {"c": [3,2]}, 2, 1 ] and [ {"c": [2,3]}, 1, 2 ]. To test for deep equality, each element from the source and target are hashed, and it checks if each element exist in each array, regardless of their position.
However, in this situation, the first item in each array ({"c": [3,2]} and {"c": [2,3]}) hashes to a different digest, because the hashing function ignores the Equivalent option.
The arrays, in this example could be sorted because we know that the underlying types of the elements are the same, but in cases where different types are present in the array, it would be impossible to ensure a "stable" ordering to produce a unique hash digest value.
I'll try to experiment with different solutions to see if it can be solved without adding some overhead.
result is:
I expect to have no difference
The text was updated successfully, but these errors were encountered: