@@ -7,6 +7,7 @@ import Data.Text (Text)
77import qualified Data.Text as T
88import Test.Tasty
99import Test.Tasty.QuickCheck
10+import Test.Tasty.Options (IsOption(defaultValue))
1011import Tests.Helpers
1112import Text.Pandoc
1213import Text.Pandoc.Arbitrary ()
@@ -77,5 +78,9 @@ tests = [ testGroup "base tag"
7778 , test htmlNativeDivs "<main> followed by text" $ "<main>main content</main>non-main content" =?>
7879 doc (divWith ("", [], [("role", "main")]) (plain (text "main content")) <> plain (text "non-main content"))
7980 ]
80− , testProperty "Round trip" (withMaxSuccess 25 roundTrip)
81+ , askOption $ \(QuickCheckTests numtests) ->
82+ testProperty "Round trip" $
83+ withMaxSuccess (if QuickCheckTests numtests == defaultValue
84+ then 25
85+ else numtests) roundTrip
8186 ]