aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-01-22Fixed -Wall error in imports.John MacFarlane1-1/+1
2011-01-22Put dashed lines around diff results in Old test.John MacFarlane1-2/+5
2011-01-22Added native writer tests.John MacFarlane3-4/+24
2011-01-22Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane3-2/+27
2011-01-22Tests.Arbitrary: Added instances for Inlines, Blocks.John MacFarlane1-0/+8
2011-01-22ConTeXt writer: Don't add cr at end of inline footnote.John MacFarlane1-7/+5
2011-01-22Improved test framework.John MacFarlane3-47/+118
Now there is a uniform interface for reader and writer tests. Also added a quasiquoter, for multiline strings.
2011-01-21Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane6-11/+3
2011-01-21latex template: move special treatment of \sout.John MacFarlane6-11/+3
It needs to be inside the if(strikeout) condition, after the ulem package is imported; otherwise we try to renewcommand{\sout} when \sout isn't yet defined.
2011-01-21More informative output on writer test failure.John MacFarlane2-8/+8
2011-01-21Added Tests.Writers.ConTeXt and helpers for writer tests.John MacFarlane3-0/+38
2011-01-21Make sure native output ends in newline with --standalone.John MacFarlane7-7/+7
2011-01-20Fixed the two test cases that were intentionally set to fail.John MacFarlane1-2/+2
2011-01-20Updated tests for new native format.John MacFarlane14-2332/+2240
2011-01-19Fixed problem with strikout in LaTeX headers with hyperref.John MacFarlane6-0/+12
Added a command to the latex template to disable \sout inside pdf strings. Thanks to Joost Kremers for the fix.
2011-01-19Show Haskell-readable version of input string in test failure.John MacFarlane1-5/+7
2011-01-19Unit tests: On failure, print the input string.John MacFarlane2-7/+7
2011-01-18Added normalize in latex reader tests.John MacFarlane1-1/+2
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane2-46/+45
Left in a couple failing tests for demonstration purposes.
2011-01-16Replaced --no-citeproc with --natbib in tests.John MacFarlane1-3/+3
2011-01-15Merge branch 'tests'John MacFarlane8-2/+551
2011-01-15Fixed lhs tests for new position of <title> after <meta>s.John MacFarlane2-2/+2
2011-01-14LaTeX writer: Escape strings in \href{..}.John MacFarlane1-5/+5
Previously strings weren't escaped, so %5D would be interpreted as a LaTeX comment!
2011-01-14Minor code cleanup.John MacFarlane1-3/+9
2011-01-14Keep Tests.Arbitrary but remove quickcheck tests for now.John MacFarlane2-15/+0
Remove Tests.Shared. Remove dependency on QuickCheck.
2011-01-14Merge branch 'master' of github.com:jgm/pandoc into testsJohn MacFarlane1-115/+58
2011-01-14LateX writer: In nonsimple tables, put cells in \parbox.John MacFarlane1-115/+58
Otherwise we can get problems with linebreaks, and cell spacing isn't right. Thanks to Jef Allbright for pointing out the problem.
2011-01-14Added quickcheck tests for normalize in Shared.John MacFarlane2-2/+18
2011-01-13Added Tests/Arbitrary.hs, with Arbitrary instances.John MacFarlane1-0/+167
2011-01-13Fixed bug in markdown-citations.mhra.txt expected test output.John MacFarlane1-2/+0
This failing test was a test suite bug, not a pandoc or citeproc bug.
2011-01-13Adjusted source to 80-column limit.John MacFarlane3-84/+111
2011-01-13Moved Tests.Shared -> Tests.Helpers.John MacFarlane2-2/+2
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.
2011-01-13Fixed bug in markdown-citations.mhra.txt expected test output.John MacFarlane1-2/+0
This failing test was a test suite bug, not a pandoc or citeproc bug.
2011-01-12Generalized latexTestWithState to readerTestWithState.Nathan Gass1-3/+3
2011-01-12Merge branch 'tests' of github.com:xabbu42/pandoc into testsNathan Gass1-3/+6
2011-01-12Reordered test files.Nathan Gass4-9/+9
2011-01-12test diff output: put +/- at beginning of line.John MacFarlane1-3/+6
2011-01-12Added line numbers to diff output in tests.John MacFarlane1-6/+7
2011-01-12Updated lhs tests for new positioning of <title>.John MacFarlane4-4/+4
2011-01-12Merge branch 'master' into testsJohn MacFarlane4-21/+21
2011-01-12Remove some accidentally commited functions. Fixed a type and alignment.Nathan Gass1-15/+4
2011-01-12Added some basic testing infrastructure and some latex reader tests.Nathan Gass3-0/+75
2011-01-12Started implementing splitted test suite.Nathan Gass2-181/+191
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 MacFarlane4-12/+94
+ 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-11Improvements to --html5 support:John MacFarlane4-21/+21
+ <nav> for TOC, <figure> for figures, type attribute in <ol>. + Don't add math javascript in html5. + Use style attributes instead of deprecated width, align. + html template: move <title> after <meta>. Note: charset needs to be declared before title. + slidy and s5 templates: move <title> after <meta>. + html template: Added link to html5 shim for IE. + Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).