aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pandoc.cabal2
-rw-r--r--tests/Tests/Old.hs4
-rw-r--r--tests/haddock-reader.haddock1
-rw-r--r--tests/haddock-reader.native2
4 files changed, 9 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index fd0c61b0b..2d2af70cc 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -118,6 +118,8 @@ Extra-Source-Files:
tests/html-reader.native,
tests/opml-reader.html,
tests/opml-reader.native,
+ tests/haddock-reader.html,
+ tests/haddock-reader.native,
tests/insert,
tests/lalune.jpg,
tests/movie.jpg,
diff --git a/tests/Tests/Old.hs b/tests/Tests/Old.hs
index 45c430c33..0ba240084 100644
--- a/tests/Tests/Old.hs
+++ b/tests/Tests/Old.hs
@@ -130,6 +130,10 @@ tests = [ testGroup "markdown"
, test "reader" ["-r", "opml", "-w", "native", "-s"]
"opml-reader.opml" "opml-reader.native"
]
+ , testGroup "haddock"
+ [ test "reader" ["-r", "haddock", "-w", "native", "-s"]
+ "haddock-reader.haddock" "haddock-reader.native"
+ ]
, testGroup "other writers" $ map (\f -> testGroup f $ writerTests f)
[ "opendocument" , "context" , "texinfo"
, "man" , "plain" , "rtf", "org", "asciidoc"
diff --git a/tests/haddock-reader.haddock b/tests/haddock-reader.haddock
new file mode 100644
index 000000000..9daeafb98
--- /dev/null
+++ b/tests/haddock-reader.haddock
@@ -0,0 +1 @@
+test
diff --git a/tests/haddock-reader.native b/tests/haddock-reader.native
new file mode 100644
index 000000000..482cd2fe2
--- /dev/null
+++ b/tests/haddock-reader.native
@@ -0,0 +1,2 @@
+Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
+[Para [Str "test"]]