mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 23:22:11 -05:00
tpl: Add missing substr test variants
This commit is contained in:
parent
4dcb63c2f6
commit
b3c2d90ba2
1 changed files with 3 additions and 0 deletions
|
@ -561,6 +561,9 @@ func TestSubstr(t *testing.T) {
|
|||
{"abcdef", 2.0, 2, "cd"},
|
||||
{"abcdef", 2, 2.0, "cd"},
|
||||
{"ĀĀĀ", 1, 2, "ĀĀ"}, // # issue 1333
|
||||
{"abcdef", "doo", nil, false},
|
||||
{"abcdef", "doo", "doo", false},
|
||||
{"abcdef", 1, "doo", false},
|
||||
} {
|
||||
var result string
|
||||
n = i
|
||||
|
|
Loading…
Reference in a new issue