Skip to content

Commit ad98070

Browse files
committed
update error messages in tests
1 parent ad84593 commit ad98070

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/amd/svd.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ include(joinpath("..", "utilities.jl"))
4141
@test ROCArray(diagview(S)) Sd
4242
# ROCArray is necessary because norm of ROCArray view with non-unit step is broken
4343
if alg isa ROCSOLVER_QRIteration
44-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), ROCSOLVER_QRIteration(; bad = "bad"))
44+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), ROCSOLVER_QRIteration(; bad = "bad"))
4545
end
4646
end
4747
end
@@ -83,8 +83,8 @@ end
8383
@test ROCArray(diagview(S)) Sc
8484
# ROCArray is necessary because norm of ROCArray view with non-unit step is broken
8585
if alg isa ROCSOLVER_QRIteration
86-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_full!(copy!(Ac, A), (U, S, Vᴴ), ROCSOLVER_QRIteration(; bad = "bad"))
87-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_vals!(copy!(Ac, A), Sc, ROCSOLVER_QRIteration(; bad = "bad"))
86+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_full!(copy!(Ac, A), (U, S, Vᴴ), ROCSOLVER_QRIteration(; bad = "bad"))
87+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_vals!(copy!(Ac, A), Sc, ROCSOLVER_QRIteration(; bad = "bad"))
8888
end
8989
end
9090
end

test/cuda/svd.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ include(joinpath("..", "utilities.jl"))
4141
@test CuArray(diagview(S)) Sd
4242
# CuArray is necessary because norm of CuArray view with non-unit step is broken
4343
if alg isa CUSOLVER_QRIteration
44-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), CUSOLVER_QRIteration(; bad = "bad"))
44+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), CUSOLVER_QRIteration(; bad = "bad"))
4545
end
4646
end
4747
end
@@ -84,8 +84,8 @@ end
8484
@test CuArray(diagview(S)) Sc
8585
# CuArray is necessary because norm of CuArray view with non-unit step is broken
8686
if alg isa CUSOLVER_QRIteration
87-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_full!(copy!(Ac, A), (U, S, Vᴴ), CUSOLVER_QRIteration(; bad = "bad"))
88-
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_vals!(copy!(Ac, A), Sc, CUSOLVER_QRIteration(; bad = "bad"))
87+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_full!(copy!(Ac, A), (U, S, Vᴴ), CUSOLVER_QRIteration(; bad = "bad"))
88+
@test_warn "invalid keyword arguments for GPU_QRIteration" svd_vals!(copy!(Ac, A), Sc, CUSOLVER_QRIteration(; bad = "bad"))
8989
end
9090
end
9191
end

test/gen_eig.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ using LinearAlgebra: Diagonal
4242
A = randn(rng, T, m, m)
4343
B = randn(rng, T, m, m)
4444
@test_throws ArgumentError("LAPACK_Expert is not supported for ggev") gen_eig_full(A, B; alg = LAPACK_Expert())
45-
@test_throws ArgumentError("LAPACK_Simple (ggev) does not accept any keyword arguments") gen_eig_full(A, B; alg = LAPACK_Simple(bad = "sad"))
45+
@test_throws ArgumentError("invalid keyword arguments for LAPACK_Simple") gen_eig_full(A, B; alg = LAPACK_Simple(bad = "sad"))
4646
@test_throws ArgumentError("LAPACK_Expert is not supported for ggev") gen_eig_vals(A, B; alg = LAPACK_Expert())
47-
@test_throws ArgumentError("LAPACK_Simple (ggev) does not accept any keyword arguments") gen_eig_vals(A, B; alg = LAPACK_Simple(bad = "sad"))
47+
@test_throws ArgumentError("invalid keyword arguments for LAPACK_Simple") gen_eig_vals(A, B; alg = LAPACK_Simple(bad = "sad"))
4848

4949
# a tuple of the input types is passed to `default_algorithm`
5050
@test_throws MethodError MatrixAlgebraKit.default_algorithm(gen_eig_full, A, B)

0 commit comments

Comments
 (0)