mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 01:24:37 +00:00
parent
46342ad5e8
commit
640121423c
1 changed files with 3 additions and 3 deletions
|
@ -768,7 +768,7 @@ func TestSplit(t *testing.T) {
|
||||||
}{
|
}{
|
||||||
{"a, b", ", ", []string{"a", "b"}},
|
{"a, b", ", ", []string{"a", "b"}},
|
||||||
{"a & b & c", " & ", []string{"a", "b", "c"}},
|
{"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"}},
|
{123, "2", []string{"1", "3"}},
|
||||||
{tstNoStringer{}, ",", false},
|
{tstNoStringer{}, ",", false},
|
||||||
} {
|
} {
|
||||||
|
@ -862,7 +862,7 @@ func (x TstX) MethodWithArg(s string) string {
|
||||||
func (x TstX) MethodReturnNothing() {}
|
func (x TstX) MethodReturnNothing() {}
|
||||||
|
|
||||||
func (x TstX) MethodReturnErrorOnly() error {
|
func (x TstX) MethodReturnErrorOnly() error {
|
||||||
return errors.New("something error occured")
|
return errors.New("some error occurred")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x TstX) MethodReturnTwoValues() (string, string) {
|
func (x TstX) MethodReturnTwoValues() (string, string) {
|
||||||
|
@ -870,7 +870,7 @@ func (x TstX) MethodReturnTwoValues() (string, string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x TstX) MethodReturnValueWithError() (string, error) {
|
func (x TstX) MethodReturnValueWithError() (string, error) {
|
||||||
return "", errors.New("something error occured")
|
return "", errors.New("some error occurred")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x TstX) String() string {
|
func (x TstX) String() string {
|
||||||
|
|
Loading…
Reference in a new issue