Skip to content

Commit

Permalink
Fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Oct 9, 2013
1 parent 1662a06 commit 60b3610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/NumberSix/Handlers/Imdb/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module NumberSix.Handlers.Imdb.Tests


--------------------------------------------------------------------------------
import qualified Data.ByteString as B
import qualified Data.Text as T
import Test.Framework (Test, testGroup)
import Test.HUnit (assert)

Expand All @@ -22,7 +22,7 @@ tests = testGroup "NumberSix.Handlers.Imdb.Tests"
[ cases "imdb"
[ do
bs <- imdb "once upon a time in america"
assert $ "Once Upon a Time in America (1984)" `B.isPrefixOf` bs
assert $ "http://www.imdb.com/title/tt0087843/" `B.isSuffixOf` bs
assert $ "Once Upon a Time in America (1984)" `T.isPrefixOf` bs
assert $ "http://www.imdb.com/title/tt0087843/" `T.isSuffixOf` bs
]
]
2 changes: 1 addition & 1 deletion tests/NumberSix/Tests/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ cases :: String -> [Assertion] -> Test
cases name assertions = testGroup name
[ testCase ("case " ++ show i) assertion
| (i, assertion) <- zip [1 :: Int ..] assertions
]
]

0 comments on commit 60b3610

Please sign in to comment.