mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
tpl: Fix typo in FindRE test
This commit is contained in:
parent
93f3a85bf8
commit
914e4d8535
1 changed files with 5 additions and 5 deletions
|
@ -1930,11 +1930,11 @@ func TestFindRE(t *testing.T) {
|
|||
expect []string
|
||||
ok bool
|
||||
}{
|
||||
{"[G|g]o", "Hugo is a static side generator written in Go.", 2, []string{"go", "Go"}, true},
|
||||
{"[G|g]o", "Hugo is a static side generator written in Go.", -1, []string{"go", "Go"}, true},
|
||||
{"[G|g]o", "Hugo is a static side generator written in Go.", 1, []string{"go"}, true},
|
||||
{"[G|g]o", "Hugo is a static side generator written in Go.", 0, []string(nil), true},
|
||||
{"[G|go", "Hugo is a static side generator written in Go.", 0, []string(nil), false},
|
||||
{"[G|g]o", "Hugo is a static site generator written in Go.", 2, []string{"go", "Go"}, true},
|
||||
{"[G|g]o", "Hugo is a static site generator written in Go.", -1, []string{"go", "Go"}, true},
|
||||
{"[G|g]o", "Hugo is a static site generator written in Go.", 1, []string{"go"}, true},
|
||||
{"[G|g]o", "Hugo is a static site generator written in Go.", 0, []string(nil), true},
|
||||
{"[G|go", "Hugo is a static site generator written in Go.", 0, []string(nil), false},
|
||||
} {
|
||||
res, err := findRE(this.expr, this.content, this.limit)
|
||||
|
||||
|
|
Loading…
Reference in a new issue