1 import Test
.Cabal
.Prelude
4 cabalTest
' "lib-normal" $ do
6 res
<- cabalWithStdin
"repl" [] ":show modules"
7 assertOutputContains
"Ok, one module loaded." res
8 cabalTest
' "lib-no-load" $ do
10 res
<- cabalWithStdin
"repl" ["--repl-no-load"] ":show modules"
11 assertOutputDoesNotContain
"Ok, one module loaded." res
12 cabalTest
' "exec-normal" $ do
14 res
<- cabalWithStdin
"repl" ["exec"] ":show modules"
15 assertOutputContains
"Ok, two modules loaded." res
16 cabalTest
' "exec-no-load" $ do
18 res
<- cabalWithStdin
"repl" ["--repl-no-load"] ":show modules"
19 assertOutputDoesNotContain
"Ok, two modules loaded." res