ghc-mod/test/FlagSpec.hs

15 lines
313 B
Haskell
Raw Normal View History

2013-02-12 05:12:15 +00:00
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"