diff options
author | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-08-04 15:37:15 +0300 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2016-08-04 15:37:15 +0300 |
commit | 914e4d85350521f417c8b844824c73398fa9561e (patch) | |
tree | 39fc88f3565d2b427af1e73572741768b08e8bad /tpl | |
parent | 93f3a85bf8d13d0c8cb8844594c79a46d8bfa581 (diff) |
tpl: Fix typo in FindRE test
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/template_funcs_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 1a94adfc3..14046eb3d 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -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) |