test for Cradle.

This commit is contained in:
Kazu Yamamoto
2013-03-05 10:22:33 +09:00
parent b7cacee767
commit 89dc02f185
5 changed files with 37 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ spec :: Spec
spec = do
describe "checkSyntax" $ do
it "can check even if an executable depends on its library" $ do
withDirectory "test/data/ghc-mod-check" $ do
withDirectory_ "test/data/ghc-mod-check" $ do
(strVer,_) <- getGHCVersion
cradle <- findCradle Nothing strVer
res <- checkSyntax defaultOptions cradle "main.hs"