aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorclaremacrae <github@cfmacrae.fastmail.co.uk>2013-08-17 18:53:01 +0100
committerclaremacrae <github@cfmacrae.fastmail.co.uk>2013-08-17 18:53:01 +0100
commit2ae2fcde2f52266d8c8f36225c718ff2a2caea73 (patch)
tree59e4b97ebf45830bd88b474f1721726ea98b4578 /tests
parent0961d499121e20473dfc02cfd1d7282f89436700 (diff)
downloadpandoc-2ae2fcde2f52266d8c8f36225c718ff2a2caea73.tar.gz
Add extra pair of test files for dokuwiki writer (#386)
I've found some incorrect behaviours with the dokuwiki output, for which extra test cases will be needed - that aren't covered by the standard pandoc test input files.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Old.hs7
-rw-r--r--tests/dokuwiki-writer.dokuwiki1
-rw-r--r--tests/dokuwiki-writer.native1
3 files changed, 8 insertions, 1 deletions
diff --git a/tests/Tests/Old.hs b/tests/Tests/Old.hs
index 6821db3fc..573ec1afe 100644
--- a/tests/Tests/Old.hs
+++ b/tests/Tests/Old.hs
@@ -124,6 +124,11 @@ tests = [ testGroup "markdown"
, test "reader" ["-r", "mediawiki", "-w", "native", "-s"]
"mediawiki-reader.wiki" "mediawiki-reader.native"
]
+ , testGroup "dokuwiki"
+ [ testGroup "writer" $ writerTests "dokuwiki"
+ , test "writer-more" ["-r", "native", "-w", "dokuwiki", "-s"]
+ "dokuwiki-writer.native" "dokuwiki-writer.dokuwiki"
+ ]
, testGroup "opml"
[ test "basic" ["-r", "native", "-w", "opml", "--columns=78", "-s"]
"testsuite.native" "writer.opml"
@@ -136,7 +141,7 @@ tests = [ testGroup "markdown"
]
, testGroup "other writers" $ map (\f -> testGroup f $ writerTests f)
[ "opendocument" , "context" , "texinfo"
- , "man" , "plain" , "rtf", "org", "asciidoc", "dokuwiki"
+ , "man" , "plain" , "rtf", "org", "asciidoc"
]
]
diff --git a/tests/dokuwiki-writer.dokuwiki b/tests/dokuwiki-writer.dokuwiki
new file mode 100644
index 000000000..98412b904
--- /dev/null
+++ b/tests/dokuwiki-writer.dokuwiki
@@ -0,0 +1 @@
+hello // world
diff --git a/tests/dokuwiki-writer.native b/tests/dokuwiki-writer.native
new file mode 100644
index 000000000..1cdad17d2
--- /dev/null
+++ b/tests/dokuwiki-writer.native
@@ -0,0 +1 @@
+[Para [Str "hello",Space,Str "//",Space,Str "world"]]