From ca420983aa83a9988ec3c0093c494ca4357fab7f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 11 Sep 2018 19:23:46 +0300 Subject: HTML reader tests: accept Blocks in round trip test --- test/Tests/Readers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Tests') diff --git a/test/Tests/Readers/HTML.hs b/test/Tests/Readers/HTML.hs index 72f90cabd..1f7f2f970 100644 --- a/test/Tests/Readers/HTML.hs +++ b/test/Tests/Readers/HTML.hs @@ -30,9 +30,9 @@ removeRawInlines :: Inline -> Inline removeRawInlines RawInline{} = Str "raw inline was here" removeRawInlines x = x -roundTrip :: Block -> Bool +roundTrip :: Blocks -> Bool roundTrip b = d'' == d''' - where d = walk removeRawInlines $ walk makeRoundTrip $ Pandoc nullMeta [b] + where d = walk removeRawInlines $ walk makeRoundTrip $ Pandoc nullMeta $ toList b d' = rewrite d d'' = rewrite d' d''' = rewrite d'' -- cgit v1.2.3