purescript-deprecated/purescript-maps

StrMap fails test

Closed this issue · 1 comments

/cc @jdegoes

from QuickCheck:

Lookup from union
96/100 test(s) passed.

Error: Test 14 failed: 
m1: fromList [Tuple ("﵂") (0.8061767220497131),Tuple ("") (0.15628582239151),Tuple ("줿") (0.04901164770126343)], 
m2: fromList [], k: "", v1: Just (0.15628582239151), v2: Nothing, 
union: fromList [Tuple ("줿") (0.04901164770126343)]

union should prefer the first map if keys overlap, but it looks like it isn't, at least not in the case of the empty string as the key.