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