aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Helpers.hs
AgeCommit message (Collapse)AuthorFilesLines
2013-06-24Use new flexible metadata type.John MacFarlane1-2/+4
* Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
2013-01-23Eliminated use of TH in test suite.John MacFarlane1-29/+2
2013-01-19Get rid of compiler warnings in Tests.Helpers.John MacFarlane1-2/+5
2013-01-12Fixed/simplified diff output for tests.John MacFarlane1-13/+8
2013-01-07Updated tests for tight/loose lists.John MacFarlane1-2/+2
Taking into account new context/latex output, and fixing some bugs in the test suite Tests.Helpers and Tests.Writers.ConTeXt. (We had the wrong order of expected/actual in the diff output.)
2013-01-02Fixed test suite to use Diff 0.2 API.John MacFarlane1-7/+7
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane1-2/+2
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-7/+5
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane1-0/+114
2011-01-29Moved tests to src.John MacFarlane1-116/+0
2011-01-26Updates for compiling with ghc 7.John MacFarlane1-3/+5
We now use a CPP trick to have compatible quasiquotes that work in both GHC 6.12 and 7.
2011-01-22Use ANSI color to point to diffs in test output.John MacFarlane1-6/+20
ConTeXt writer bullet list test set to break as an example.
2011-01-22Tests.Helpers: Added file quasiquoter.John MacFarlane1-0/+14
This allows you to take expected test output from a file.
2011-01-22Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane1-2/+14
2011-01-22Improved test framework.John MacFarlane1-22/+57
Now there is a uniform interface for reader and writer tests. Also added a quasiquoter, for multiline strings.
2011-01-21More informative output on writer test failure.John MacFarlane1-2/+2
2011-01-21Added Tests.Writers.ConTeXt and helpers for writer tests.John MacFarlane1-0/+5
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 MacFarlane1-5/+5
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane1-24/+22
Left in a couple failing tests for demonstration purposes.
2011-01-14Minor code cleanup.John MacFarlane1-3/+9
2011-01-13Adjusted source to 80-column limit.John MacFarlane1-0/+2
2011-01-13Moved Tests.Shared -> Tests.Helpers.John MacFarlane1-0/+26
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.