ghc-mod/test/FindSpec.hs

17 lines
417 B
Haskell
Raw Normal View History

2014-07-17 14:16:12 +00:00
module FindSpec where
import Control.Applicative ((<$>))
import Data.List (isPrefixOf)
import Language.Haskell.GhcMod.Find
import Test.Hspec
import TestUtils
import qualified Data.Map
spec :: Spec
spec = do
describe "db <- loadSymbolDb" $ do
it "lookupSymbol' db \"head\" contains at least `Data.List'" $ do
db <- loadSymbolDb
2014-07-18 06:13:30 +00:00
lookupSym "head" db `shouldContain` ["Data.List"]