diff options
| author | Shulhan <ms@kilabit.info> | 2022-07-24 02:30:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-07-24 02:30:28 +0700 |
| commit | 19e2b864ea304f6ab7bd92e97fb1017988f527a7 (patch) | |
| tree | 4350e03140bc3d8dd85a45fe8b947ed89de92363 /go.mod | |
| parent | 5a88e6cc970c315958d044d78e776a3b02bc0c14 (diff) | |
| download | asciidoctor-go-19e2b864ea304f6ab7bd92e97fb1017988f527a7.tar.xz | |
all: rewrite test using lib/test.Data
Previously, to test parser and check the generated HTML, we write AsciDoc
input and expected HTML output using literal string `...`.
The text of input and output sometimes long, take multiple lines, which
makes the test code ugly, hard to write, and read.
Using lib/test.Data we can write the input and output as the AsciiDoc
markup and the HTML markup as is, simplify writing the test and more
readable.
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,6 +5,6 @@ module git.sr.ht/~shulhan/asciidoctor-go go 1.18 -require github.com/shuLhan/share v0.39.0 +require github.com/shuLhan/share v0.39.1-0.20220723102219-eb932c941bd3 //replace github.com/shuLhan/share => ../share |
