From a4ce3a565081ea9988309255faf05dedbe2e70a3 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 26 Mar 2014 14:49:37 +0900 Subject: [PATCH] fixing test. --- test/CheckSpec.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CheckSpec.hs b/test/CheckSpec.hs index 5ecf072..3f2b8ab 100644 --- a/test/CheckSpec.hs +++ b/test/CheckSpec.hs @@ -15,13 +15,13 @@ spec = do withDirectory_ "test/data/ghc-mod-check" $ do cradle <- findCradleWithoutSandbox res <- checkSyntax defaultOptions cradle ["main.hs"] - res `shouldBe` "main.hs:5:1:Warning: Top-level binding with no type signature: main :: IO ()\NUL\n" + res `shouldBe` "main.hs:5:1:Warning: Top-level binding with no type signature: main :: IO ()\n" it "can check even if a test module imports another test module located at different directory" $ do withDirectory_ "test/data/check-test-subdir" $ do cradle <- findCradleWithoutSandbox res <- checkSyntax defaultOptions cradle ["test/Bar/Baz.hs"] - res `shouldSatisfy` (("test" "Foo.hs:3:1:Warning: Top-level binding with no type signature: foo :: [Char]\NUL\n") `isSuffixOf`) + res `shouldSatisfy` (("test" "Foo.hs:3:1:Warning: Top-level binding with no type signature: foo :: [Char]\n") `isSuffixOf`) it "can detect mutually imported modules" $ do withDirectory_ "test/data" $ do