3
// Copyright 2009 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 basic operations of slices and arrays.
158
if len(by) != hb-lb {
159
println("t=", t, "lb=", lb, "hb=", hb,
160
"len=", len(by), "hb-lb=", hb-lb)
163
if cap(by) != len(bx)-lb {
164
println("t=", t, "lb=", lb, "hb=", hb,
165
"cap=", cap(by), "len(bx)-lb=", len(bx)-lb)
168
for i := lb; i < hb; i++ {
169
if bx[i] != by[i-lb] {
170
println("t=", t, "lb=", lb, "hb=", hb,
171
"bx[", i, "]=", bx[i],
172
"by[", i-lb, "]=", by[i-lb])
181
if len(fy) != hb-lb {
182
println("t=", t, "lb=", lb, "hb=", hb,
183
"len=", len(fy), "hb-lb=", hb-lb)
186
if cap(fy) != len(fx)-lb {
187
println("t=", t, "lb=", lb, "hb=", hb,
188
"cap=", cap(fy), "len(fx)-lb=", len(fx)-lb)
191
for i := lb; i < hb; i++ {
192
if fx[i] != fy[i-lb] {
193
println("t=", t, "lb=", lb, "hb=", hb,
194
"fx[", i, "]=", fx[i],
195
"fy[", i-lb, "]=", fy[i-lb])
203
for i := 0; i < len(bx); i++ {
208
for i := 0; i < len(fx); i++ {
209
fx[i] = float64(i + 20)