From: Cameron Moore Date: Wed, 17 Aug 2016 03:26:19 +0000 (-0500) Subject: tpl: Fix typos in tests X-Git-Tag: v0.17~78 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=640121423ca830b6062ef7bc4edab8dbf4b5411d;p=brevno-suite%2Fhugo tpl: Fix typos in tests Closes #2370 --- diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index eee4c36f..a1c09bd9 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -768,7 +768,7 @@ func TestSplit(t *testing.T) { }{ {"a, b", ", ", []string{"a", "b"}}, {"a & b & c", " & ", []string{"a", "b", "c"}}, - {"http://exmaple.com", "http://", []string{"", "exmaple.com"}}, + {"http://example.com", "http://", []string{"", "example.com"}}, {123, "2", []string{"1", "3"}}, {tstNoStringer{}, ",", false}, } { @@ -862,7 +862,7 @@ func (x TstX) MethodWithArg(s string) string { func (x TstX) MethodReturnNothing() {} func (x TstX) MethodReturnErrorOnly() error { - return errors.New("something error occured") + return errors.New("some error occurred") } func (x TstX) MethodReturnTwoValues() (string, string) { @@ -870,7 +870,7 @@ func (x TstX) MethodReturnTwoValues() (string, string) { } func (x TstX) MethodReturnValueWithError() (string, error) { - return "", errors.New("something error occured") + return "", errors.New("some error occurred") } func (x TstX) String() string {