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
Insertion order is a crucial property of the data structure and it's counterintuitive that on equality the order is not respected. It has bit me several times when I was writing unit tests for my code.
Steps
Evaluate:
(= (linked/map1234)
(linked/map3412))
Expected
false.
Actual
true.
Workaround
Convert linked maps to seqs prior to comparison:
(= (seq (linked/map1234))
(seq (linked/map3412)))
The text was updated successfully, but these errors were encountered:
Insertion order is a crucial property of the data structure and it's counterintuitive that on equality the order is not respected. It has bit me several times when I was writing unit tests for my code.
Steps
Evaluate:
Expected
false
.Actual
true
.Workaround
Convert linked maps to seqs prior to comparison:
The text was updated successfully, but these errors were encountered: