1 # Make sure the ESC character isn't doubled.
2 ! go test -v
3
4 stdout ' x_test.go:11: \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\n \x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\n'
5 stdout ' x_test.go:12: \x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\n \x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\n'
6 ! stdout '\x1b\x1b'
7
8 -- go.mod --
9 module p
10
11 -- x_test.go --
12 package p
13
14 import "testing"
15
16 func Test(t *testing.T) {
17 var s string
18 for i := rune(0); i < ' '; i++ {
19 s += string(i)
20 }
21
22 t.Log(s)
23 t.Error(s)
24 }
25
View as plain text