3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test source files and strings containing \r and \r\n.
17 prog
= strings
.Replace(prog
, "BQ", "`", -1)
18 prog
= strings
.Replace(prog
, "CR", "\r", -1)
28 var CR s = "hello\n" + CR
34 var u = BQhCReCRlCRlCRoCR
37 var golden = "hello\n world"
41 fmt.Printf("s=%q, want %q", s, golden)
44 fmt.Printf("t=%q, want %q", t, golden)
47 fmt.Printf("u=%q, want %q", u, golden)