BrowseSpec.hs 344 B

123456789101112131415
  1. module BrowseSpec where
  2. import Control.Applicative
  3. import Test.Hspec
  4. import Browse
  5. import Expectation
  6. import Types
  7. spec :: Spec
  8. spec = do
  9. describe "browseModule" $ do
  10. it "lists up symbols in the module" $ do
  11. syms <- lines <$> browseModule defaultOptions "Data.Map"
  12. syms `shouldContain` "differenceWithKey"