summaryrefslogtreecommitdiff
path: root/tests/Tests/Helpers.hs
AgeCommit message (Collapse)Author
2017-02-04Moved tests/ -> test/.John MacFarlane
2017-01-25Removed `--normalize` option and normalization functions from Shared.John MacFarlane
* Removed normalize, normalizeInlines, normalizeBlocks from Text.Pandoc.Shared. These shouldn't now be necessary, since normalization is handled automatically by the Builder monoid instance. * Remove `--normalize` command-line option. * Don't use normalize in tests. * A few revisions to readers so they work well without normalize.
2017-01-25Update tests to work with runPure.John MacFarlane
2016-11-30Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane
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]
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2013-06-24Use new flexible metadata type.John MacFarlane
* 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 MacFarlane
2013-01-19Get rid of compiler warnings in Tests.Helpers.John MacFarlane
2013-01-12Fixed/simplified diff output for tests.John MacFarlane
2013-01-07Updated tests for tight/loose lists.John MacFarlane
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 MacFarlane
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane
2011-01-29Moved tests to src.John MacFarlane
2011-01-26Updates for compiling with ghc 7.John MacFarlane
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 MacFarlane
ConTeXt writer bullet list test set to break as an example.
2011-01-22Tests.Helpers: Added file quasiquoter.John MacFarlane
This allows you to take expected test output from a file.
2011-01-22Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane
2011-01-22Improved test framework.John MacFarlane
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 MacFarlane
2011-01-21Added Tests.Writers.ConTeXt and helpers for writer tests.John MacFarlane
2011-01-19Show Haskell-readable version of input string in test failure.John MacFarlane
2011-01-19Unit tests: On failure, print the input string.John MacFarlane
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane
Left in a couple failing tests for demonstration purposes.
2011-01-14Minor code cleanup.John MacFarlane
2011-01-13Adjusted source to 80-column limit.John MacFarlane
2011-01-13Moved Tests.Shared -> Tests.Helpers.John MacFarlane
Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.