summaryrefslogtreecommitdiff
path: root/tests/Tests
AgeCommit message (Collapse)Author
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-25Removed need for utf8-string package.John MacFarlane
* Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
2012-09-22Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane
Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
2012-09-22LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane
This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
2012-09-21Tests.Old: Set TMP to ".".John MacFarlane
Otherwise TMP is unset and, on Windows, C:\Windows is used by default, leading to permission violations.
2012-09-12Added basic mediawiki reader.John MacFarlane
Text.Pandoc.Readers.MediaWiki module, tests/mediawiki-reader.{txt,native}.
2012-08-08Changes to literate haskell options.John MacFarlane
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
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-29Added Tests.Shared with normalize round-trip tests.John MacFarlane
2011-01-29Tests.Arbitrary: don't allow empty list items.John MacFarlane
2011-01-29Removed intentionally failing test in ConTeXt writer tests.John MacFarlane
2011-01-29Added biblatex citation tests to Tests.Readers.LaTeX.John MacFarlane
Removed old biblatex-citations.latex.
2011-01-29Added natbib citation tests to Tests.Readers.LaTeX.John MacFarlane
Removed old tests/natbib-citations.latex.
2011-01-26Added Tests.Readers.Markdown.John MacFarlane
2011-01-26Add support for attributes in inline Code.John MacFarlane
Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
2011-01-26RST reader: Improved field lists.John MacFarlane
Field lists now work properly with block content. (Thanks to Lachlan Musicman for pointing out the bug.) In addition, definition list items are now always Para instead of Plain -- which matches behavior of rst2xml.py. Finally, in image blocks, the alt attribute is parsed properly and used for the alt, not also the title.
2011-01-26Added RST reader tests.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-26Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane
The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
2011-01-22Removed deliberate error in LaTeX reader tests.John MacFarlane
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-22Tests.Arbitrary: Let strings include any character.John MacFarlane
2011-01-22Fixed -Wall error in imports.John MacFarlane
2011-01-22Put dashed lines around diff results in Old test.John MacFarlane
2011-01-22Added native writer tests.John MacFarlane
2011-01-22Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane
2011-01-22Tests.Arbitrary: Added instances for Inlines, Blocks.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-20Fixed the two test cases that were intentionally set to fail.John MacFarlane
2011-01-20Updated tests for new native format.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-18Added normalize in latex reader tests.John MacFarlane
2011-01-18Revamped tests with new =: and =?> operators + builder.John MacFarlane
Left in a couple failing tests for demonstration purposes.
2011-01-16Replaced --no-citeproc with --natbib in tests.John MacFarlane
2011-01-14Minor code cleanup.John MacFarlane
2011-01-14Keep Tests.Arbitrary but remove quickcheck tests for now.John MacFarlane
Remove Tests.Shared. Remove dependency on QuickCheck.
2011-01-14Added quickcheck tests for normalize in Shared.John MacFarlane
2011-01-13Added Tests/Arbitrary.hs, with Arbitrary instances.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.
2011-01-12Generalized latexTestWithState to readerTestWithState.Nathan Gass
2011-01-12Merge branch 'tests' of github.com:xabbu42/pandoc into testsNathan Gass
2011-01-12Reordered test files.Nathan Gass