8680b3f7d1
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.
14 lines
366 B
Haskell
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"]
|