ghc-mod/test/FindSpec.hs

13 lines
343 B
Haskell
Raw Normal View History

2014-07-17 14:16:12 +00:00
module FindSpec where
import Language.Haskell.GhcMod.Find
import Test.Hspec
import TestUtils
2014-07-17 14:16:12 +00:00
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"]