ghc-mod/test/LintSpec.hs
Kazu Yamamoto 9c30b11667 typo.
2014-03-13 09:34:45 +09:00

13 lines
400 B
Haskell

module LintSpec where
import Language.Haskell.GhcMod
import Test.Hspec
spec :: Spec
spec = do
describe "lintSyntax" $ do
it "check syntax with HLint" $ do
res <- lintSyntax defaultOptions "test/data/hlint.hs"
res `shouldBe` "test/data/hlint.hs:4:8: Error: Redundant do\NULFound:\NUL do putStrLn \"Hello, world!\"\NULWhy not:\NUL putStrLn \"Hello, world!\"\n"