ghc-mod/test/FindSpec.hs
2017-01-12 17:05:47 +01:00

14 lines
363 B
Haskell

{-# LANGUAGE OverloadedStrings #-}
module FindSpec where
import GhcMod.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"]