Commit graph

7 commits

Author SHA1 Message Date
yuin
feff0bb82b Add case=x,x.. aruguments for tests 2020-07-02 15:28:33 +09:00
yuin
5334c63923 Change IDs argumnent 2019-12-02 18:24:22 +09:00
yuin
68dcec6ac4 Closes #46 : Add WithIDs option 2019-12-02 14:38:28 +09:00
yuin
4536e57938 Fixes #35 2019-11-25 20:35:02 +09:00
yuin
afc3654ecf Fixes #28, #29 2019-11-16 21:11:57 +09:00
Abhinav Gupta
8c55e6fa9c Move test utilities to testutil/
This moves the following functions meant for use from tests into a
testutil subpackage.

    func DoTestCase(m Markdown, testCase MarkdownTestCase, t TestingT)
    func DoTestCaseFile(m Markdown, filename string, t TestingT)
    func DoTestCases(m goldmark.Markdown, cases []MarkdownTestCase, t TestingT)

This will help keep the top-level goldmark package clean and limited to
core functionality.

(Note that tests in the top-level goldmark package that make use of
these functions must now use the package name `goldmark_test` so that
they're considered separate from the main `goldmark` package, otherwise
you'll see an import cycle: goldmark imports testutil imports goldmark.)
2019-08-25 03:18:18 -07:00
LI Tao
6369ad43e8 Fix inaccurate indent calculation of list_item and add extra test to cover the case 2019-07-16 13:05:14 +08:00