URI: 
       tpl: Add missing test scenario for strings.Substr - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 788e50ad3a55609ed49ce0b7ee98965c181fe9cf
   DIR parent 4d2b6fc4c0e714f3f1ed345d6d75ed1662948791
  HTML Author: Cameron Moore <moorereason@gmail.com>
       Date:   Sun,  3 Jan 2021 12:00:17 -0600
       
       tpl: Add missing test scenario for strings.Substr
       
       Diffstat:
         M tpl/strings/strings_test.go         |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/tpl/strings/strings_test.go b/tpl/strings/strings_test.go
       @@ -453,6 +453,7 @@ func TestSubstr(t *testing.T) {
                        {"abcdef", 2, -1, "cde"},
                        {"abcdef", 4, -4, false},
                        {"abcdef", 7, 1, false},
       +                {"abcdef", 6, nil, false},
                        {"abcdef", 1, 100, "bcdef"},
                        {"abcdef", -100, 3, "abc"},
                        {"abcdef", -3, -1, "de"},
       @@ -486,7 +487,7 @@ func TestSubstr(t *testing.T) {
                        }
        
                        if b, ok := test.expect.(bool); ok && !b {
       -                        c.Assert(err, qt.Not(qt.IsNil), qt.Commentf("%v", test))
       +                        c.Check(err, qt.Not(qt.IsNil), qt.Commentf("%v", test))
                                continue
                        }