Skip to content

Commit b8af9ab

Browse files
committed
Make intersectionWith test more precise
1 parent bec0126 commit b8af9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Test/Data/Map.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ mapTests = do
238238
let u = M.intersectionWith op m1 m2 :: M.Map SmallKey Int
239239
in case M.lookup k u of
240240
Nothing -> not (M.member k m1 && M.member k m2)
241-
Just v -> v == op (fromMaybe ident (M.lookup k m1)) (fromMaybe ident (M.lookup k m2))
241+
Just v -> Just v == (op <$> M.lookup k m1 <*> M.lookup k m2)
242242

243243
log "difference"
244244
quickCheck $ \(TestMap m1) (TestMap m2) ->

0 commit comments

Comments
 (0)