Better test for redirected check
Output now doesn't depend on compiler version
This commit is contained in:
parent
8f931eb928
commit
c2ff5be4ea
@ -88,7 +88,7 @@ spec = do
|
|||||||
res <- run defaultOptions {fileMappings = fm} $ do
|
res <- run defaultOptions {fileMappings = fm} $ do
|
||||||
loadMappedFiles
|
loadMappedFiles
|
||||||
checkSyntax ["File.hs"]
|
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
|
it "checks in-memory file if one is specified and outputs original filename" $ do
|
||||||
withDirectory_ "test/data/file-mapping" $ do
|
withDirectory_ "test/data/file-mapping" $ do
|
||||||
let fm = [("File.hs", MemoryMapping $ Just "main = putStrLn \"Hello World!\"\n")]
|
let fm = [("File.hs", MemoryMapping $ Just "main = putStrLn \"Hello World!\"\n")]
|
||||||
|
@ -1 +1 @@
|
|||||||
main = undefined
|
main = putStrLn "Hello World!"
|
||||||
|
Loading…
Reference in New Issue
Block a user