Skip to content

Commit fee3769

Browse files
authored
Remove bad isSubmapOf testcase (#504)
The property tested is covered by the test case above, but the property claimed in the test name is plain wrong: m1 ⊈ m2 ⇒ m1 ∪ m2 ⊈ m1: FAIL *** Failed! Falsified (after 1 test and 2 shrinks): fromList [(K {hash = 0, _x = A},0)] fromList []
1 parent 37eee22 commit fee3769

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/Properties/HashMapLazy.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ tests =
258258
\(x :: HMKI) -> HM.isSubmapOf x x
259259
, testProperty "m1 ⊆ m1 ∪ m2" $
260260
\(x :: HMKI) y -> HM.isSubmapOf x (HM.union x y)
261-
, testProperty "m1 ⊈ m2 ⇒ m1 ∪ m2 ⊈ m1" $
262-
\(m1 :: HMKI) m2 -> not (HM.isSubmapOf m1 m2) ==> HM.isSubmapOf m1 (HM.union m1 m2)
263261
, testProperty "m1\\m2 ⊆ m1" $
264262
\(m1 :: HMKI) (m2 :: HMKI) -> HM.isSubmapOf (HM.difference m1 m2) m1
265263
, testProperty "m1 ∩ m2 ≠ ∅ ⇒ m1 ⊈ m1\\m2 " $

0 commit comments

Comments
 (0)