Age | Commit message (Collapse) | Author |
|
The format for the spec examples has changed from
.
markdown
.
html
.
to
```````````````````````````````` example
markdown
.
html
````````````````````````````````
One advantage of this is that `spec.txt` becomes a valid
Markdown file.
`tests/spec_test.py` has been changed to use the new format.
The old `tools/makespec.py` has been replaced by a lua
program, `tools/make_spec.lua`, which uses the `lcmark` rock
(and indirectly libcmark). It can generate
html, latex, and commonmark versions of the spec.
Pandoc is no longer needed for the latex/PDF version.
And, since the new program uses the cmark API and operates
directly on the parse tree, we avoid certain bad results we
got with the regex replacements done by the python script.
|
|
This way we don't fail tests for legitimate variations in
URL escaping/normalization policies.
Closes #334.
|
|
|
|
It has been removed as of python 3.5.
Closes #380.
|
|
|
|
Combining direct stdout buffer writes and print doesn't work
well; results are out of order.
|
|
Set options for conversion, set library paths in a more
cross-platform way.
|
|
See #345.
|
|
Closes #344.
|
|
|
|
|
|
|
|
The C and JS implementations are being split off into
different repositories.
This repository will just have the spec itself.
|
|
Otherwise skip them, running a dummy test skipping_spec_tests to
signal that they are being skipped.
To require the spec tests, do `cmake .. -DSPEC_TESTS=1`.
Closes #278.
Although I still have some qualms about tests that can appear to
pass while being incomplete, I see the advantages of allowing
the package to build without python3.
|
|
|
|
set_tests_properties must not be called before adding the test.
|
|
|
|
This is because some versions of python have a limit of N = 65535 in
regex `{N}`.
|
|
|
|
Partially reverts ba8f2c48b700a466a8cf7097d5f72d43372d4c37.
See #251.
|
|
Closes #251.
|
|
Factored test selection logic out of do_tests.
Eliminated do_tests, putting the (now very short) code into main.
Improves 1ba4822 @cirosantilli
|
|
Removed from .travis.yml.
This should be a standard part of the test suite.
See #245.
|
|
* The tests test for removal of whitespace around block-level tags.
* Previously whitespace wasn't removed before an initial block-level
tag; this commit fixes that.
* Also revised wording so it's clear that whitespace is removed
on both sides of block-level tags.
Closes #246 in a slightly different way.
|
|
Closes #249 in a slightly different way.
|
|
spec_tests add short options for common parameters
|
|
Add --number option to run a single test by its id
|
|
Indicate which is expected and which is actual output.
|
|
This could be reproduced with:
./test/spec_tests.py --program kramdown --pattern Enti
with Kramdown version 1.5.0.
The main problem is that it would stop future tests from being carried out.
After this commit it is just counted as a failure.
The error message printed is of the form:
Unicode error: 'utf8' codec can't decode byte 0xfc in position 8: invalid start byte
'<p># \xd3\x92 \xcf\xa0 \xef\xbf\xbd</p>\n'
'<p># \xd3\x92 \xcf\xa0 \xfc\x85\xb8\xb0\xa9\xb8</p>\n'
|
|
|
|
Do not check input validity, e.g. input `>` number of tests, because
other inputs don't check it either, e.g. `--pattern`.
If given, the summary line will be like:
1 passed, 0 failed, 0 errored, 509 skipped
|
|
|
|
|
|
|
|
|
|
all these variables are not defined and have to be extracted from `test`.
Running the script this way resulted in error:
```
python cmm/test/spec_tests.py --spec cmm/spec.txt --program "./bin/markdown --flavor=common"
Traceback (most recent call last):
File "cmm/test/spec_tests.py", line 137, in <module>
if do_tests(cmark, tests, args.pattern, args.normalize):
File "cmm/test/spec_tests.py", line 114, in do_tests
result = do_test(test, normalize)
File "cmm/test/spec_tests.py", line 47, in do_test
print_test_header(headertext, example_number,start_line,end_line)
NameError: global name 'headertext' is not defined
```
|
|
|
|
|
|
|
|
|
|
|
|
Added test/CMakeLists.txt.
|