Commit graph

13 commits

Author SHA1 Message Date
yuin
254b9f8f77 Fix #403, Fix #406 2023-07-23 22:07:27 +09:00
Piggy NL
b1ef69a870 Add test timeout multiplier environment variable 2022-11-11 17:55:35 +08:00
Shengjing Zhu
f28136bf1c Skip performance test in short mode
When packaging this library for Debian, some CI servers are slow
to run performance tests.
2022-03-23 16:07:28 +08:00
yuin
a816d4652e Fix tests for Go1.16 2022-03-05 18:56:34 +09:00
yuin
920c3818d4 Improve raw html parsing performance 2022-03-05 18:45:57 +09:00
yuin
be2bf82af9 Fix performance problems related link labels 2022-03-05 17:37:40 +09:00
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