aboutsummaryrefslogtreecommitdiff
path: root/test/test-pandoc.hs
diff options
context:
space:
mode:
authorChristian Despres <50160106+despresc@users.noreply.github.com>2020-09-05 17:36:51 -0400
committerGitHub <noreply@github.com>2020-09-05 14:36:51 -0700
commit10c6c411f9bd582ce9bafe159728f322a54395cd (patch)
tree710e87c33e06824eeb171a5ddc5c9eb174c9f43e /test/test-pandoc.hs
parent3935c9c5c4b070d43b2d7d946fd28dfdaf87e080 (diff)
downloadpandoc-10c6c411f9bd582ce9bafe159728f322a54395cd.tar.gz
Add Writers.Tables helper functions and types, add tests for those (#6655)
Add Writers.Tables helper functions and types, add tests for those The Writers.Tables module contains an AnnTable type that is a pandoc Table with added inferred information that should be enough for writers (in particular the HTML writer) to operate on without having to lay out the table themselves. The toAnnTable and fromAnnTable functions in that module convert between AnnTable and Table. In addition to producing an AnnTable with coherent and well-formed annotations, the toAnnTable function also normalizes its input Table like the table builder does. Various tests ensure that toAnnTable normalizes tables exactly like the table builder, and that its annotations are coherent.
Diffstat (limited to 'test/test-pandoc.hs')
-rw-r--r--test/test-pandoc.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-pandoc.hs b/test/test-pandoc.hs
index d0a1a6f18..50c7d5b09 100644
--- a/test/test-pandoc.hs
+++ b/test/test-pandoc.hs
@@ -44,6 +44,7 @@ import qualified Tests.Writers.Org
import qualified Tests.Writers.Plain
import qualified Tests.Writers.Powerpoint
import qualified Tests.Writers.RST
+import qualified Tests.Writers.Tables
import qualified Tests.Writers.TEI
import Tests.Helpers (findPandoc)
import Text.Pandoc.Shared (inDirectory)
@@ -72,6 +73,7 @@ tests pandocPath = testGroup "pandoc tests"
, testGroup "FB2" Tests.Writers.FB2.tests
, testGroup "PowerPoint" Tests.Writers.Powerpoint.tests
, testGroup "Ms" Tests.Writers.Ms.tests
+ , testGroup "Tables" Tests.Writers.Tables.tests
]
, testGroup "Readers"
[ testGroup "LaTeX" Tests.Readers.LaTeX.tests