blas/testblas: avoid sub-tests in test for Ztbmv
MODIFY
blas/testblas/ztbmv.go
blas/testblas/ztbmv.go
@@ -27,10 +27,7 @@ func ZtbmvTest(t *testing.T, impl Ztbmver) {
for k := 0; k < n; k++ {
for _, ldab := range []int{k + 1, k + 1 + 10} {
for _, incX := range []int{-4, 1, 5} {
- name := fmt.Sprintf("uplo=%v,trans=%v,diag=%v,n=%v,k=%v,ldab=%v,incX=%v", uplo, trans, diag, n, k, ldab, incX)
- t.Run(name, func(t *testing.T) {
testZtbmv(t, impl, rnd, uplo, trans, diag, n, k, ldab, incX)
- })
}
}
}
@@ -93,13 +90,14 @@ func testZtbmv(t *testing.T, impl Ztbmver, rnd *rand.Rand, uplo blas.Uplo, trans
impl.Ztrmv(uplo, trans, diag, n, a, lda, want, incX)
impl.Ztbmv(uplo, trans, diag, n, k, ab, ldab, x, incX)
+ name := fmt.Sprintf("uplo=%v,trans=%v,diag=%v,n=%v,k=%v,ldab=%v,incX=%v", uplo, trans, diag, n, k, ldab, incX)
if !zsame(ab, abCopy) {
- t.Errorf("unexpected modification of ab")
+ t.Errorf("%v: unexpected modification of ab", name)
}
if !zSameAtNonstrided(x, want, incX) {
- t.Errorf("unexpected modification of x")
+ t.Errorf("%v: unexpected modification of x", name)
}
if !zEqualApproxAtStrided(x, want, incX, tol) {
- t.Errorf("unexpected result\nwant %v\ngot %v", want, x)
+ t.Errorf("%v: unexpected result\nwant %v\ngot %v", name, want, x)
}
}

blas/testblas: avoid sub-tests in test for Ztbmv