From 5c11026fa48e13ea1c351ab882765eb0966f2e97 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Sun, 12 Nov 2023 21:48:29 +0700 Subject: [PATCH] Make tests pass with `hspec < 2.11.7` (close #125) --- test/TriggerSpec.hs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/TriggerSpec.hs b/test/TriggerSpec.hs index f81be9c..aa15619 100644 --- a/test/TriggerSpec.hs +++ b/test/TriggerSpec.hs @@ -122,7 +122,11 @@ spec = do , " Spec.hs:8:3: " , " 1) bar" , "" +#if MIN_VERSION_hspec(2,11,7) , " To rerun use: --match \"/bar/\" --seed 0" +#else + , " To rerun use: --match \"/bar/\"" +#endif , "" , "Randomized with seed 0" , "" @@ -221,7 +225,11 @@ spec = do , " Spec.hs:8:3: " , " 1) bar" , "" +#if MIN_VERSION_hspec(2,11,7) , " To rerun use: --match \"/bar/\" --seed 0" +#else + , " To rerun use: --match \"/bar/\"" +#endif , "" , "Randomized with seed 0" , ""