Skip to content

Commit d95b1fb

Browse files
committed
Fix tests on ghc96
1 parent 7645d32 commit d95b1fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Reflex/Process/Repl.hs

+3-2
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,14 @@ testRepl = runHeadlessApp $ do
331331
rec (Repl _ finished _ exit) <- repl (P.shell "ghci") cmds $ \cur line -> (C8.pack (show cur) <> promptPostfix) == line
332332
output <- foldDyn Map.union Map.empty finished
333333
passed <- performEvent $ ffor (tagPromptlyDyn output exit) $ \o -> do
334+
liftIO $ print o
334335
liftIO $ putStrLn "testRepl:"
335336
r1 <- assertStdoutEq "Simple command (1+1)" (Map.lookup 9 o) "2"
336337
r2 <- assertStdoutEq "IO action (putStrLn)" (Map.lookup 10 o) "hello"
337-
r3 <- assertStderr "Not in scope error" (Map.lookup 11 o) (C8.isInfixOf "error: Variable not in scope: oops" . unLines)
338+
r3 <- assertStderr "Not in scope error" (Map.lookup 11 o) (C8.isInfixOf "Variable not in scope: oops" . unLines)
338339
r4 <- assertStdoutEq "Simple command (2+2)" (Map.lookup 12 o) "4"
339340
r5 <- assertStdoutEq "Simple command (3+4)" (Map.lookup 13 o) "7"
340-
r6 <- assertStderr "Exception" (Map.lookup 14 o) (C8.isPrefixOf "*** Exception" . unLines)
341+
r6 <- assertStderr "Exception" (Map.lookup 14 o) (C8.isInfixOf "*** Exception" . unLines)
341342
r7 <- assertStdoutEq "Reload (:r)" (Map.lookup 15 o) "Ok, no modules loaded."
342343
r8 <- assertStdoutEq "Quit (:q)" (Map.lookup 16 o) "Leaving GHCi."
343344
pure $ and [r1, r2, r3, r4, r5, r6, r7, r8]

0 commit comments

Comments
 (0)