mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri CC=golang-dev https://golang.org/cl/156115
This commit is contained in:
parent
aa4c638b7b
commit
9ac4449cb2
118 changed files with 308 additions and 308 deletions
|
|
@ -289,26 +289,26 @@ func compareFloat32Slices(s1, s2 []float32) int {
|
|||
|
||||
func TestNormTables(t *testing.T) {
|
||||
testKn, testWn, testFn := initNorm();
|
||||
if i := compareUint32Slices(kn[0:len(kn)], testKn); i >= 0 {
|
||||
if i := compareUint32Slices(kn[0:], testKn); i >= 0 {
|
||||
t.Errorf("kn disagrees at index %v; %v != %v\n", i, kn[i], testKn[i])
|
||||
}
|
||||
if i := compareFloat32Slices(wn[0:len(wn)], testWn); i >= 0 {
|
||||
if i := compareFloat32Slices(wn[0:], testWn); i >= 0 {
|
||||
t.Errorf("wn disagrees at index %v; %v != %v\n", i, wn[i], testWn[i])
|
||||
}
|
||||
if i := compareFloat32Slices(fn[0:len(fn)], testFn); i >= 0 {
|
||||
if i := compareFloat32Slices(fn[0:], testFn); i >= 0 {
|
||||
t.Errorf("fn disagrees at index %v; %v != %v\n", i, fn[i], testFn[i])
|
||||
}
|
||||
}
|
||||
|
||||
func TestExpTables(t *testing.T) {
|
||||
testKe, testWe, testFe := initExp();
|
||||
if i := compareUint32Slices(ke[0:len(ke)], testKe); i >= 0 {
|
||||
if i := compareUint32Slices(ke[0:], testKe); i >= 0 {
|
||||
t.Errorf("ke disagrees at index %v; %v != %v\n", i, ke[i], testKe[i])
|
||||
}
|
||||
if i := compareFloat32Slices(we[0:len(we)], testWe); i >= 0 {
|
||||
if i := compareFloat32Slices(we[0:], testWe); i >= 0 {
|
||||
t.Errorf("we disagrees at index %v; %v != %v\n", i, we[i], testWe[i])
|
||||
}
|
||||
if i := compareFloat32Slices(fe[0:len(fe)], testFe); i >= 0 {
|
||||
if i := compareFloat32Slices(fe[0:], testFe); i >= 0 {
|
||||
t.Errorf("fe disagrees at index %v; %v != %v\n", i, fe[i], testFe[i])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue