type

CommonMarkSpecTest

src abstract class CommonMarkSpecTest : Test

Runs all the tests from the common mark specification

The spec.json was generated from the commonmark-spec repo using this command:

python test/spec_tests.py --dump-tests > spec.json

The commonmark-java implementation actually does a simple parsing of the spec.md file to extract the examples, but we can't do that because of fantom unicode issues. Also, it would require a bit more code to do that and this prcoess is not so bad.

fields

methods

examples
examplesToRun
expectedFailures

These all fail because of unicode issues in fantom

init
run
test

Slot Details

bySection

src protected Str:Example[] bySection := [:].with() |[Obj:Obj?]->Void| { ... }

examples

src protected Example[] examples()

examplesToRun

src protected virtual Example[] examplesToRun()

expectedFailures

src protected virtual Int[] expectedFailures()

These all fail because of unicode issues in fantom

init

src protected Bool init()

run

src protected abstract ExampleRes run(Example example)

test

src Void test()