summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-02 21:09:22 -0700
committermb21 <mb21@users.noreply.github.com>2015-08-07 12:37:12 +0200
commit564b0c43b064fc235eb3b2ac83e8c0812d825011 (patch)
tree51a0d57838a3b1c9896a2bfa418fd0f05ab1ea71 /tests
parent92d48fa65bb8b90f6d6b81646a15ce8326083f05 (diff)
Updated Arbitrary instance for new image attribute parameter.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Arbitrary.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Tests/Arbitrary.hs b/tests/Tests/Arbitrary.hs
index 3675d97bf..de07322fb 100644
--- a/tests/Tests/Arbitrary.hs
+++ b/tests/Tests/Arbitrary.hs
@@ -60,10 +60,11 @@ arbInline n = frequency $ [ (60, liftM Str realString)
x3 <- realString
x2 <- liftM escapeURI realString
return $ Link x1 (x2,x3))
- , (10, do x1 <- arbInlines (n-1)
+ , (10, do x0 <- arbAttr
+ x1 <- arbInlines (n-1)
x3 <- realString
x2 <- liftM escapeURI realString
- return $ Image x1 (x2,x3))
+ return $ Image x0 x1 (x2,x3))
, (2, liftM2 Cite arbitrary (arbInlines 1))
, (2, liftM Note $ resize 3 $ listOf1 $ arbBlock (n-1))
]