mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
tpl: Add missing substr test variants
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user