aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-03-03Initial tests for writerNikolay Yakimov1-0/+2
2014-08-13Make options work with test-pandoc.John MacFarlane1-4/+3
2014-08-10Improved EPUB TestsMatthew Pickering1-0/+2
Rewrote features test to remove all unimplemented features. There are now all three examples of where an image can be included in the test. 1. Cover image 2. As a spine elemnt 3. In the document Tests have also been added to make sure that the mediabag contains all these images after processing.
2014-08-03Correctly implement capitalisation.Artyom Kazak1-0/+2
Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it.
2014-07-27Txt2Tags Reader: Added testsMatthew Pickering1-1/+2
2014-06-16Naming: Use Docx instead of DocX.John MacFarlane1-2/+2
For consistency with the existing writer.
2014-06-16Add DocX tests to test-pandoc.hsJesse Rosenthal1-0/+3
2014-05-03AsciiDoc writer: Added test for empty table cells.John MacFarlane1-0/+2
2014-04-12Add some unit tests for Writers.DocbookNeil Mayhew1-0/+2
These are primarily aimed at testing the new treatment of line breaks, but hopefully other tests can be added more easily now as features and changes are implemented in the writer. Adapted from Tests.Writers.HTML.tests.
2014-03-04Add a simple Emacs Org-mode readerAlbert Krewinkel1-0/+2
The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
2013-10-20Pass the buildDir as first argument to test suite.John MacFarlane1-1/+4
Allows test suite to work with cabal sandboxes. Previously we hard-coded the build directory.
2013-08-10Added Tests.Walk.John MacFarlane1-0/+2
This verifies that walk and query match the generic traversals.
2013-01-18Set locale encoding in test suite.John MacFarlane1-2/+4
This prevents a "commit buffer (invalid argument)" error on Windows.
2012-07-26Integrated test suite with cabal.John MacFarlane1-1/+2
To run tests, configure with --enable-tests, then 'cabal test'. You can specify particular tests using --test-options='-t markdown'. No output is shown unless tests fail. In the future, we can move to the detailed-1.0 interface.
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane1-0/+36
2011-01-29Moved tests to src.John MacFarlane1-30/+0
2011-01-29Added Tests.Shared with normalize round-trip tests.John MacFarlane1-0/+2
2011-01-26Added Tests.Readers.Markdown.John MacFarlane1-0/+2
2011-01-26Added RST reader tests.John MacFarlane1-0/+2
2011-01-22Reorganized tests.John MacFarlane1-4/+4
The native writer test needs to run before others that depend on it.
2011-01-22Added native writer tests.John MacFarlane1-0/+2
2011-01-21Added Tests.Writers.ConTeXt and helpers for writer tests.John MacFarlane1-0/+4
2011-01-14Keep Tests.Arbitrary but remove quickcheck tests for now.John MacFarlane1-2/+0
Remove Tests.Shared. Remove dependency on QuickCheck.
2011-01-14Added quickcheck tests for normalize in Shared.John MacFarlane1-2/+5
2011-01-12Reordered test files.Nathan Gass1-5/+5
2011-01-12Added some basic testing infrastructure and some latex reader tests.Nathan Gass1-0/+3
2011-01-12Started implementing splitted test suite.Nathan Gass1-181/+3
Moved old tests into Old.hs and added new simple test-pandoc.hs for loading and grouping together tests from different files. Later commits will add more testfiles to the suite with more modular tests.
2011-01-12test-pandoc: Improved header for diff output.John MacFarlane1-2/+2
2011-01-12test-pandoc: More informative diff output on test failure.John MacFarlane1-4/+7
Now the test suite tells you the exact command that was run, and the file containing the expected output.
2011-01-12test-pandoc: Relocated --columns=80 to just where it's needed.John MacFarlane1-4/+4
We only need it for certain table tests, because of the relative alignments.
2011-01-12test-pandoc: Fixed + and - in diff output, which were reversed.John MacFarlane1-2/+2
2011-01-12test-pandoc: More diff-like diffs in case of test failure.John MacFarlane1-5/+5
2011-01-12Improvements to test suite.John MacFarlane1-10/+14
+ You can now specify glob patterns after 'cabal test'; e.g. 'cabal test latex' will only run the latex tests. + Instead of detecting highlighting support in Setup.hs, we now detect it in test-pandoc, by looking to see if 'languages' is null. + We now verify the lhs readers against the lhs-test.native, normalizing with 'normalize'. This makes more sense than verifying against HTML, which also brings in the HTML writer. + Added lhsn-test.nohl.{html,html+lhs}, so we can do the lhs tests whether or not highlighting has been installed.
2011-01-11Removed outdated comments.Nathan Gass1-12/+0
2011-01-11Moved test-pandoc.hs to tests directory.Nathan Gass1-0/+197