mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 17:26:32 +00:00
tests: print accurate location if a test fails
Ensures that tasty-hunit reports the location of the failing test instead of the location of the helper `test` function.
This commit is contained in:
@@ -35,7 +35,7 @@ import Text.Pandoc.Shared (trimr)
|
||||
import Text.Pandoc.Writers.Native (writeNative)
|
||||
import Text.Printf
|
||||
|
||||
test :: (ToString a, ToString b, ToString c)
|
||||
test :: (ToString a, ToString b, ToString c, HasCallStack)
|
||||
=> (a -> b) -- ^ function to test
|
||||
-> String -- ^ name of test case
|
||||
-> (a, c) -- ^ (input, expected value)
|
||||
|
||||
Reference in New Issue
Block a user