aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-07-24 02:30:28 +0700
committerShulhan <ms@kilabit.info>2022-07-24 02:30:28 +0700
commit19e2b864ea304f6ab7bd92e97fb1017988f527a7 (patch)
tree4350e03140bc3d8dd85a45fe8b947ed89de92363 /go.mod
parent5a88e6cc970c315958d044d78e776a3b02bc0c14 (diff)
downloadasciidoctor-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.mod2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index e4bae23..d56ce9b 100644
--- a/go.mod
+++ b/go.mod
@@ -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