1 // $G $D/$F.go && $L $F.$A && ./$A.out
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.
156 if len(by) != hb-lb {
157 println("t=", t, "lb=", lb, "hb=", hb,
158 "len=", len(by), "hb-lb=", hb-lb)
161 if cap(by) != len(bx)-lb {
162 println("t=", t, "lb=", lb, "hb=", hb,
163 "cap=", cap(by), "len(bx)-lb=", len(bx)-lb)
166 for i := lb; i < hb; i++ {
167 if bx[i] != by[i-lb] {
168 println("t=", t, "lb=", lb, "hb=", hb,
169 "bx[", i, "]=", bx[i],
170 "by[", i-lb, "]=", by[i-lb])
179 if len(fy) != hb-lb {
180 println("t=", t, "lb=", lb, "hb=", hb,
181 "len=", len(fy), "hb-lb=", hb-lb)
184 if cap(fy) != len(fx)-lb {
185 println("t=", t, "lb=", lb, "hb=", hb,
186 "cap=", cap(fy), "len(fx)-lb=", len(fx)-lb)
189 for i := lb; i < hb; i++ {
190 if fx[i] != fy[i-lb] {
191 println("t=", t, "lb=", lb, "hb=", hb,
192 "fx[", i, "]=", fx[i],
193 "fy[", i-lb, "]=", fy[i-lb])
201 for i := 0; i < len(bx); i++ {
206 for i := 0; i < len(fx); i++ {
207 fx[i] = float(i + 20)