diff options
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprog/crash.go | 6 | ||||
| -rw-r--r-- | src/runtime/testdata/testprog/panicprint.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/testdata/testprog/crash.go b/src/runtime/testdata/testprog/crash.go index 38c8f6a2fa..bdc395f652 100644 --- a/src/runtime/testdata/testprog/crash.go +++ b/src/runtime/testdata/testprog/crash.go @@ -77,7 +77,7 @@ func DoublePanic() { type exampleError struct{} func (e exampleError) Error() string { - panic("important error message") + panic("important multi-line\nerror message") } func ErrorPanic() { @@ -97,7 +97,7 @@ func DoubleErrorPanic() { type exampleStringer struct{} func (s exampleStringer) String() string { - panic("important stringer message") + panic("important multi-line\nstringer message") } func StringerPanic() { @@ -115,7 +115,7 @@ func DoubleStringerPanic() { } func StringPanic() { - panic("important string message") + panic("important multi-line\nstring message") } func NilPanic() { diff --git a/src/runtime/testdata/testprog/panicprint.go b/src/runtime/testdata/testprog/panicprint.go index c8deabe2ab..4ce958ba3d 100644 --- a/src/runtime/testdata/testprog/panicprint.go +++ b/src/runtime/testdata/testprog/panicprint.go @@ -31,7 +31,7 @@ func panicCustomComplex128() { } func panicCustomString() { - panic(MyString("Panic")) + panic(MyString("Panic\nline two")) } func panicCustomBool() { |
