From 41c89d51c7b3d0099e72c0693bfd413bb4498de9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 3 May 2014 21:24:20 -0700 Subject: AsciiDoc writer: Added test for empty table cells. --- tests/tables.asciidoc | 11 ++++------- tests/test-pandoc.hs | 2 ++ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/tables.asciidoc b/tests/tables.asciidoc index 38daca192..ba647866a 100644 --- a/tests/tables.asciidoc +++ b/tests/tables.asciidoc @@ -52,20 +52,17 @@ Multiline table without caption: Table without column headers: [cols=">,<,^,>",] -|============================================================================= +|================== |12 |12 |12 |12 - |123 |123 |123 |123 - |1 |1 |1 |1 -|============================================================================= +|================== Multiline table without column headers: [width="78%",cols="^21%,<17%,>20%,42%",] -|============================================================================= +|======================================================================= |First |row |12.0 |Example of a row that spans multiple lines. - |Second |row |5.0 |Here's another one. Note the blank line between rows. -|============================================================================= +|======================================================================= diff --git a/tests/test-pandoc.hs b/tests/test-pandoc.hs index a7d4fca01..80d672589 100644 --- a/tests/test-pandoc.hs +++ b/tests/test-pandoc.hs @@ -15,6 +15,7 @@ import qualified Tests.Writers.HTML import qualified Tests.Writers.Docbook import qualified Tests.Writers.Native import qualified Tests.Writers.Markdown +import qualified Tests.Writers.AsciiDoc import qualified Tests.Shared import qualified Tests.Walk import Text.Pandoc.Shared (inDirectory) @@ -30,6 +31,7 @@ tests = [ testGroup "Old" Tests.Old.tests , testGroup "HTML" Tests.Writers.HTML.tests , testGroup "Docbook" Tests.Writers.Docbook.tests , testGroup "Markdown" Tests.Writers.Markdown.tests + , testGroup "AsciiDoc" Tests.Writers.AsciiDoc.tests ] , testGroup "Readers" [ testGroup "LaTeX" Tests.Readers.LaTeX.tests -- cgit v1.2.3