Use fewer quickcheck tests for lua tests, to speed things up.
This commit is contained in:
parent
e15a4badff
commit
de0fd90051
1 changed files with 3 additions and 3 deletions
|
@ -3,9 +3,9 @@ module Tests.Lua ( tests ) where
|
|||
|
||||
import Control.Monad (when)
|
||||
import System.FilePath ((</>))
|
||||
import Test.Tasty (TestTree)
|
||||
import Test.Tasty (TestTree, localOption)
|
||||
import Test.Tasty.HUnit (Assertion, assertEqual, testCase)
|
||||
import Test.Tasty.QuickCheck (ioProperty, testProperty)
|
||||
import Test.Tasty.QuickCheck (ioProperty, testProperty, QuickCheckTests(..))
|
||||
import Text.Pandoc.Arbitrary ()
|
||||
import Text.Pandoc.Definition (Block, Inline, Meta, Pandoc)
|
||||
import Text.Pandoc.Builder ( (<>), bulletList, doc, doubleQuoted, emph
|
||||
|
@ -16,7 +16,7 @@ import Text.Pandoc.Lua
|
|||
import qualified Scripting.Lua as Lua
|
||||
|
||||
tests :: [TestTree]
|
||||
tests =
|
||||
tests = map (localOption (QuickCheckTests 20))
|
||||
[ testProperty "inline elements can be round-tripped through the lua stack" $
|
||||
\x -> ioProperty (roundtripEqual (x::Inline))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue