aboutsummaryrefslogtreecommitdiff
path: root/inline_parser_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-08-13 23:50:10 +0700
committerShulhan <ms@kilabit.info>2024-08-13 23:50:21 +0700
commit64bd8146914636d395ecd50bf2623b5353976521 (patch)
tree13ec5c0a40a7b3afc0f9048daf9736a147b0a55d /inline_parser_test.go
parentf4c31c2117be6e83c11b975163a7695eddba894b (diff)
downloadasciidoctor-go-64bd8146914636d395ecd50bf2623b5353976521.tar.xz
all: refactoring DocumentAttribute into struct
Using struct limit the value to only string, while some attributes can be an integer value, for example "leveloffset".
Diffstat (limited to 'inline_parser_test.go')
-rw-r--r--inline_parser_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/inline_parser_test.go b/inline_parser_test.go
index 9bb2e3f..a468975 100644
--- a/inline_parser_test.go
+++ b/inline_parser_test.go
@@ -15,8 +15,10 @@ import (
func TestInlineParser(t *testing.T) {
var (
_testDoc = &Document{
- Attributes: map[string]string{
- `x`: `https://kilabit.info`,
+ Attributes: DocumentAttribute{
+ Entry: map[string]string{
+ `x`: `https://kilabit.info`,
+ },
},
anchors: map[string]*anchor{