summaryrefslogtreecommitdiff
path: root/tests/Tests/Helpers.hs
Commit message (Collapse)AuthorAge
* Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane2016-11-30
| | | | | | | | Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Eliminated use of TH in test suite.John MacFarlane2013-01-23
|
* Get rid of compiler warnings in Tests.Helpers.John MacFarlane2013-01-19
|
* Fixed/simplified diff output for tests.John MacFarlane2013-01-12
|
* Updated tests for tight/loose lists.John MacFarlane2013-01-07
| | | | | | 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.)
* Fixed test suite to use Diff 0.2 API.John MacFarlane2013-01-02
|
* Renamed removedLeadingTrailingSpace to trim.John MacFarlane2012-09-29
| | | | | Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane2012-07-26
|
* Moved tests to src.John MacFarlane2011-01-29
|
* Updates for compiling with ghc 7.John MacFarlane2011-01-26
| | | | | We now use a CPP trick to have compatible quasiquotes that work in both GHC 6.12 and 7.
* Use ANSI color to point to diffs in test output.John MacFarlane2011-01-22
| | | | ConTeXt writer bullet list test set to break as an example.
* Tests.Helpers: Added file quasiquoter.John MacFarlane2011-01-22
| | | | This allows you to take expected test output from a file.
* Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane2011-01-22
|
* Improved test framework.John MacFarlane2011-01-22
| | | | | Now there is a uniform interface for reader and writer tests. Also added a quasiquoter, for multiline strings.
* More informative output on writer test failure.John MacFarlane2011-01-21
|
* Added Tests.Writers.ConTeXt and helpers for writer tests.John MacFarlane2011-01-21
|
* Show Haskell-readable version of input string in test failure.John MacFarlane2011-01-19
|
* Unit tests: On failure, print the input string.John MacFarlane2011-01-19
|
* Revamped tests with new =: and =?> operators + builder.John MacFarlane2011-01-18
| | | | Left in a couple failing tests for demonstration purposes.
* Minor code cleanup.John MacFarlane2011-01-14
|
* Adjusted source to 80-column limit.John MacFarlane2011-01-13
|
* Moved Tests.Shared -> Tests.Helpers.John MacFarlane2011-01-13
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.