ghc-mod/test/FlagSpec.hs
2013-02-12 14:12:15 +09:00

15 lines
313 B
Haskell

module FlagSpec where
import Control.Applicative
import Test.Hspec
import Expectation
import Flag
import Types
spec :: Spec
spec = do
describe "listFlags" $ do
it "lists up GHC flags" $ do
flags <- lines <$> listFlags defaultOptions
flags `shouldContain` "-fno-warn-orphans"