Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Aug 3, 2022
1 parent 3f9de60 commit c75157e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ddddddO/gtree

go 1.18
go 1.19

require (
github.com/fatih/color v1.13.0
Expand Down
6 changes: 3 additions & 3 deletions node_generate_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ func TestTabStrategy_Generate(t *testing.T) {
row string
want *want
}{
"root/hierarchy=1": {"- aaa bb", &want{name: "aaa bb", hierarchy: 1, index: fixedIndex, err: nil}},
"child/hierarchy=2": {" - aaa bb", &want{name: "aaa bb", hierarchy: 2, index: fixedIndex, err: nil}},
"root/hierarchy=1": {"- aaa bb", &want{name: "aaa bb", hierarchy: 1, index: fixedIndex, err: nil}},
"child/hierarchy=2": {" - aaa bb", &want{name: "aaa bb", hierarchy: 2, index: fixedIndex, err: nil}},
"child/hierarchy=2/tab on the way": {" - aaa bb", &want{name: "aaa bb", hierarchy: 2, index: fixedIndex, err: nil}},
"invalid/hierarchy=0/prefix space": {" - aaa bb", &want{err: errIncorrectFormat}},
"invalid/hierarchy=0/prefix chars": {"xx- aaa bb", &want{err: errIncorrectFormat}},
"invalid/hierarchy=0/no hyphen": {"xx aaa bb", &want{err: errIncorrectFormat}},
"invalid/hierarchy=0/tab only": {" ", &want{err: errIncorrectFormat}},
"invalid/hierarchy=0/tab only": {" ", &want{err: errIncorrectFormat}},
}

for name, tt := range tests {
Expand Down

0 comments on commit c75157e

Please sign in to comment.