Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / Init / init-interactive-legacy.test.hs
blob75b6472e142919dcde6d5597b54c2b11a02bab89
1 import Test.Cabal.Prelude
3 main = cabalTest $ do
4 cwd <- testCurrentDir <$> getTestEnv
5 buildOut <- do
6 cabalWithStdin "init" ["-i", "-p", "app"]
7 "2\n\n1\n\n10\n\n\n\n\n\n\n\n\n\n"
8 setup "configure" []
9 setup' "build" ["app"]
11 assertFileDoesContain (cwd </> "app.cabal") "1.24"
12 assertFileDoesContain (cwd </> "app.cabal") "BSD3"
13 assertFileDoesContain (cwd </> "app.cabal") "Simple"
14 assertFileDoesNotContain (cwd </> "app.cabal") "^>="
15 assertFileDoesContain (cwd </> "app/Main.hs") "This should remain as is!"
16 assertOutputContains "Linking" buildOut