Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Commit

Permalink
Better test for redirected check
Browse files Browse the repository at this point in the history
Output now doesn't depend on compiler version
  • Loading branch information
lierdakil committed Aug 15, 2015
1 parent 8f931eb commit c2ff5be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/FileMappingSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec = do
res <- run defaultOptions {fileMappings = fm} $ do
loadMappedFiles
checkSyntax ["File.hs"]
res `shouldBe` "File.hs:1:1:Warning: Top-level binding with no type signature: main :: forall t. t\n"
res `shouldBe` "File.hs:1:1:Warning: Top-level binding with no type signature: main :: IO ()\n"
it "checks in-memory file if one is specified and outputs original filename" $ do
withDirectory_ "test/data/file-mapping" $ do
let fm = [("File.hs", MemoryMapping $ Just "main = putStrLn \"Hello World!\"\n")]
Expand Down
2 changes: 1 addition & 1 deletion test/data/file-mapping/File_Redir.hs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
main = undefined
main = putStrLn "Hello World!"

0 comments on commit c2ff5be

Please sign in to comment.