Skip to content

Commit 92f0ceb

Browse files
infinity0treeowl
authored andcommitted
test-suite: fix naming consistency between strict vs lazy IntMap
1 parent afae462 commit 92f0ceb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

containers-tests/tests/intmap-strictness.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pInsertLookupWithKeyValueStrict f k v m
9090
-- also https://github.com/haskell/containers/issues/473
9191

9292
pFromAscListLazy :: [Int] -> Bool
93-
pFromAscListLazy ks = not . isBottom $ M.fromAscList elems
93+
pFromAscListLazy ks = not . isBottom $ L.fromAscList elems
9494
where
9595
elems = [(k, v) | k <- nubInt ks, v <- [undefined, ()]]
9696

@@ -132,7 +132,7 @@ tExtraThunksM = testGroup "IntMap.Strict - extra thunks" $
132132
msg = "too lazy -- expected fully evaluated ()"
133133

134134
tExtraThunksL :: Test
135-
tExtraThunksL = testGroup "IntMap.Strict - extra thunks" $
135+
tExtraThunksL = testGroup "IntMap.Lazy - extra thunks" $
136136
if not isUnitSupported then [] else
137137
-- for lazy maps, the *With functions should leave `const () ()` thunks,
138138
-- but the other functions should produce fully evaluated ().
@@ -147,7 +147,7 @@ tExtraThunksL = testGroup "IntMap.Strict - extra thunks" $
147147
]
148148
where
149149
m0 = L.singleton 42 ()
150-
check :: TestName -> Bool -> IntMap () -> Test
150+
check :: TestName -> Bool -> L.IntMap () -> Test
151151
check n e m = testCase n $ case L.lookup 42 m of
152152
Just v -> assertBool msg (e == isUnit v)
153153
_ -> assertString "key not found"

0 commit comments

Comments
 (0)