aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Arbitrary.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Tests/Arbitrary.hs')
-rw-r--r--tests/Tests/Arbitrary.hs11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/Tests/Arbitrary.hs b/tests/Tests/Arbitrary.hs
index d0000dcee..5939d088d 100644
--- a/tests/Tests/Arbitrary.hs
+++ b/tests/Tests/Arbitrary.hs
@@ -150,10 +150,13 @@ instance Arbitrary QuoteType where
instance Arbitrary Meta where
arbitrary
- = do x1 <- arbitrary
- x2 <- liftM (filter (not . null)) arbitrary
- x3 <- arbitrary
- return (Meta x1 x2 x3)
+ = do (x1 :: Inlines) <- arbitrary
+ (x2 :: [Inlines]) <- liftM (filter (not . isNull)) arbitrary
+ (x3 :: Inlines) <- arbitrary
+ return $ setMeta "title" x1
+ $ setMeta "author" x2
+ $ setMeta "date" x3
+ $ nullMeta
instance Arbitrary Alignment where
arbitrary