Adding a test case for Browse.

This commit is contained in:
Kazu Yamamoto 2013-03-01 09:46:17 +09:00
parent eb93ebd860
commit 4d9a170e50
1 changed files with 5 additions and 0 deletions

View File

@ -12,3 +12,8 @@ spec = do
it "lists up symbols in the module" $ do
syms <- lines <$> browseModule defaultOptions "Data.Map"
syms `shouldContain` "differenceWithKey"
describe "browseModule -d" $ do
it "lists up symbols with type info in the module" $ do
syms <- lines <$> browseModule defaultOptions { detailed = True } "Data.Either"
syms `shouldContain` "either :: (a -> c) -> (b -> c) -> Either a b -> c"