mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- replaced gofmt expression formatting algorithm with
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
This commit is contained in:
parent
7685a67fe8
commit
1698934194
33 changed files with 364 additions and 364 deletions
|
|
@ -229,7 +229,7 @@ const space = "\t\v\r\f\n\u0085\u00a0\u2000\u3000"
|
|||
var trimSpaceTests = []StringTest{
|
||||
StringTest{"", ""},
|
||||
StringTest{"abc", "abc"},
|
||||
StringTest{space+"abc"+space, "abc"},
|
||||
StringTest{space + "abc" + space, "abc"},
|
||||
StringTest{" ", ""},
|
||||
StringTest{" \t\r\n \t\t\r\r\n\n ", ""},
|
||||
StringTest{" \t\r\n x\t\t\r\r\n\n ", "x"},
|
||||
|
|
@ -312,7 +312,7 @@ func TestAdd(t *testing.T) {
|
|||
b[i] = test.s[i]
|
||||
}
|
||||
b = Add(b, strings.Bytes(test.t));
|
||||
if string(b) != test.s + test.t {
|
||||
if string(b) != test.s+test.t {
|
||||
t.Errorf("Add(%q,%q) = %q", test.s, test.t, string(b))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue