Skip to content

Commit

Permalink
tpl: Fix typo in FindRE test
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman committed Aug 4, 2016
1 parent 93f3a85 commit 914e4d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tpl/template_funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 914e4d8

Please sign in to comment.