summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-04-15pathological_tests.py: added test for deeply nested lists.John MacFarlane
2018-03-25Update spec.John MacFarlane
2018-03-25Update spec.txt from repository.John MacFarlane
2017-11-18Also run API tests with CMARK_SHARED=OFFNick Wellnhofer
2017-11-18Rename roundtrip and entity testsNick Wellnhofer
Rename the tests to reflect that they use the library, not the executable.
2017-11-05Fixed exit code for pathological tests.John MacFarlane
2017-11-05Add allowed failures to pathological_tests.py.John MacFarlane
This allows us to include tests that we don't yet know how to pass.
2017-11-05Add timeout to pathological_tests.py.John MacFarlane
Tests must complete in 8 seconds or are errors.
2017-11-05Refactored pathological_tests.pyJohn MacFarlane
2017-08-16Add more pathological tests.Martin Mitas
These tests target the issues #214, #218, #220.
2017-08-09--smart: open quote can never occur right after `]` or `)`.John MacFarlane
Closes #227.
2017-08-01Update spec.John MacFarlane
2017-08-01Update spec.John MacFarlane
2017-07-13Reverted mistaken fix to #193.John MacFarlane
Commit 14ea489f5dd6e3d07e23f104d6c9ce441d05751b
2017-06-29Updated spec.txt.John MacFarlane
2017-06-27Add Makefile target and harness to fuzz with libFuzzerPhil Turnbull
This can be run locally with `make libFuzzer` but the harness will be integrated into oss-fuzz for large-scale fuzzing.
2017-06-27Move fuzzing dictionary into single filePhil Turnbull
This allows AFL and libFuzzer to use the same dictionary
2017-06-23Add hyphen to dictionaryPhil Turnbull
2017-06-02Properly handle backslashes in link destinations.John MacFarlane
Only ascii punctuation characters are escapable, per the spec. Closes #192.
2017-06-02Fixed bug with unescaped left angle bracket in link destination.John MacFarlane
Closes #193.
2017-01-08Update spec.John MacFarlane
2017-01-06Make shared and static libraries optionalAzamat H. Hackimov
Now you can enable/disable compilation and installation targets for shared and static libraries via -DCMARK_SHARED=ON/OFF and -DCMARK_STATIC=ON/OFF
2017-01-03Added pathological test for #178 (quadratic).John MacFarlane
The new "multiple of 3" rule defeats one of our optimizations.
2017-01-03Added regression test for #177.John MacFarlane
2017-01-03Revert "More sourcepos! (#169)"John MacFarlane
This reverts commit 9e643720ec903f3b448bd2589a0c02c2514805ae.
2017-01-03Revert "Change types for source map offsets (#174)"John MacFarlane
This reverts commit 4fbe344df43ed7f60a3d3a53981088334cb709fc.
2016-12-30Change types for source map offsets (#174)Nick Wellnhofer
* Improve strbuf guarantees Introduce BUFSIZE_MAX macro and make sure that the strbuf implementation can handle strings up to this size. * Abort early if document size exceeds internal limit * Change types for source map offsets Switch to size_t for the public API, making the public headers C89-compatible again. Switch to bufsize_t internally, reducing memory usage and improving performance on 32-bit platforms. * Make parser return NULL on internal index overflow Make S_parser_feed set an error and ignore subsequent chunks if the total input document size exceeds an internal limit. Make cmark_parser_finish return NULL if an error was encountered. Add public API functions to retrieve error code and error message. strbuf overflow in renderers and OOM in parser or renderers still cause an abort.
2016-12-20More sourcepos! (#169)Mathieu Duponchelle
* open_new_blocks: always create child before advancing offset * Source map * Extent's typology * In-depth python bindings
2016-12-01Allow balanced nested parens in link destinations (#166)Yuki Izumi
2016-11-26Added pathological test for backticks.John MacFarlane
Currently aborts.
2016-11-18Update spec.John MacFarlane
2016-11-04Fix for non-matching entities (#161)Yuki Izumi
* Add test to illustrate issue * Provide some test fixes * Don't neglect CounterClockwiseContourIntegral * Fix ~10% of cases not matching strncmp returns 0 if the first 'len' bytes of cmark_entities[i].entity match s; we check equal length in the first if by checking if cmark_entities[i].entity[len] == 0, but we neglect the case where cmp == 0 && cmark_entities[i].entity[len] != 0. This should be treated as the same as cmp < 0, because strcmp("abc", "abcd") < 0. * Don't depend on py3.3 in tests
2016-09-15Update spec.John MacFarlane
2016-09-14Update spec.John MacFarlane
2016-09-14Allow tabs after setext header line.John MacFarlane
See jgm/commonmark.js#109
2016-09-12Fixed h2..h6 HTML blocks (jgm/CommonMark#430).John MacFarlane
Added regression test.
2016-09-12Update specJohn MacFarlane
2016-07-15Updated spec.John MacFarlane
2016-07-13Updated spec.John MacFarlane
2016-07-11Updated spec.John MacFarlane
2016-07-11Updated spec.John MacFarlane
2016-07-02Updated spec.txt.John MacFarlane
2016-06-24Updated spec and pathological tests for changes in strong/emph parsing.John MacFarlane
2016-06-23Updated spec.John MacFarlane
2016-06-23Updated spec.txt.John MacFarlane
2016-06-06cmake: Global handler for OOM situationsVicent Marti
2016-06-06test: Add tests for memory exhaustionVicent Marti
2016-06-06Fix ctypes in Python FFI callsNick Wellnhofer
This didn't cause problems so far because - all types are 32-bit on 32-bit systems and - arguments are passed in registers on x86-64. The wrong types could cause crashes on other platforms, though.
2016-06-02roundtrip tests: remove spurious failures.John MacFarlane
In the commonmark writer we separate lists, and lists and indented code, using a dummy HTML comment rather than two blank lines (this is more portable). So in evaluating the round-trip tests, we now strip out these comments. We also normalize HTML to avoid issues having to do with line breaks.
2016-06-02Added new roundtrip_tests.py.John MacFarlane
This replaces the old use of simple shell scripts. It is much faster, and more flexible. (We will be able to do custom normalization and skip certain tests.)