Skip to content

Commit 0b9e47b

Browse files
committed
Add a test for deprecations
1 parent b9594b6 commit 0b9e47b

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

test/deprecations.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using IterativeSolvers
2+
using Test
3+
4+
@testset "Test depwarn for tol" begin
5+
A = rand(2, 2)
6+
b = rand(2)
7+
8+
@test_deprecated cg(A, b, tol=1.0, maxiter=1)
9+
@test_deprecated bicgstabl(A, b, 1, tol=1.0, max_mv_products=1)
10+
@test_deprecated chebyshev(A, b, 0.0, 1.0, tol=1.0, maxiter=1)
11+
@test_deprecated gmres(A, b, tol=1.0, maxiter=1)
12+
@test_deprecated idrs(A, b, tol=1.0, maxiter=1)
13+
@test_deprecated minres(A, b, tol=1.0, maxiter=1)
14+
@test_deprecated qmr(A, b, tol=1.0, maxiter=1)
15+
end

test/runtests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,5 @@ include("lsmr.jl")
4444
#History data structure
4545
include("history.jl")
4646

47-
#Expensive tests - don't run by default
48-
#include("matrixmarket.jl")
49-
#include("matrixcollection.jl")
47+
# Test deprecations
48+
include("deprecations.jl")

0 commit comments

Comments
 (0)