Skip to content

Commit

Permalink
tpl: Add missing test scenario for strings.Substr
Browse files Browse the repository at this point in the history
  • Loading branch information
moorereason authored and gzagatti committed Jan 11, 2021
1 parent fd8f43c commit a259156
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tpl/strings/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ func TestSubstr(t *testing.T) {
{"abcdef", -3, 1, "d"},
{"abcdef", 0, -1, "abcde"},
{"abcdef", 2, -1, "cde"},
{"abcdef", 4, -4, ""},
{"abcdef", 7, 1, ""},
{"abcdef", 6, nil, ""},
{"abcdef", 4, -4, false},
{"abcdef", 7, 1, false},
{"abcdef", 6, nil, false},
{"abcdef", 1, 100, "bcdef"},
{"abcdef", -100, 3, "abc"},
{"abcdef", -3, -1, "de"},
Expand Down

0 comments on commit a259156

Please sign in to comment.