Skip to content

Commit

Permalink
Better error message in test
Browse files Browse the repository at this point in the history
  • Loading branch information
slycelote committed Nov 6, 2021
1 parent 6425daf commit 324f6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcaide/test/ProblemParsers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ assertParses parser url expectedProblem expectedTestCases = HUnit.TestCase $ do
assertBool "The parser must be able to handle the URL" $ problemUrlMatches url
parseResult <- parseProblem url Nothing
case parseResult of
Left err -> assertFailure $ T.unpack err
Left err -> assertFailure $ T.unpack $ url <> ": " <> err
Right (problem, testCases) -> do
assertEqual "Problem name" (problemName expectedProblem) (problemName problem)
assertEqual "Problem ID" (problemId expectedProblem) (problemId problem)
Expand Down

0 comments on commit 324f6eb

Please sign in to comment.