ghc-mod/test/FindSpec.hs
Daniel Gröber 8680b3f7d1 Make sure tests can't be forgotten in cabal file
some *Spec.hs files weren't landing in the sdist since they werent
listed in other-modules and since we use hspec-discover no one ever
noticed.
2017-03-01 03:26:37 +01:00

14 lines
366 B
Haskell

{-# LANGUAGE OverloadedStrings #-}
module FindSpec where
import GhcModExe.Find
import Test.Hspec
import TestUtils
spec :: Spec
spec = do
describe "db <- loadSymbolDb" $ do
it "lookupSymbol' db \"head\" contains at least `Data.List'" $ do
db <- runD $ loadSymbolDb
lookupSym "head" db `shouldContain` [ModuleString "Data.List"]