Skip to content

Commit 91886b1

Browse files
committed
Relax more error types in special tests
1 parent 6868e52 commit 91886b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/special.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Random.seed!(1)
4343
@test Matrix(convert(newtype, A)) == Matrix(A)
4444
end
4545
for newtype in [Diagonal, Bidiagonal]
46-
@test_throws ArgumentError convert(newtype,A)
46+
@test_throws Union{ArgumentError,InexactError} convert(newtype,A)
4747
end
4848
A = SymTridiagonal(a, zeros(n-1))
4949
@test Matrix(convert(Bidiagonal,A)) == Matrix(A)
@@ -57,7 +57,7 @@ Random.seed!(1)
5757
@test Matrix(convert(newtype, A)) == Matrix(A)
5858
end
5959
for newtype in [Diagonal, Bidiagonal]
60-
@test_throws ArgumentError convert(newtype,A)
60+
@test_throws Union{ArgumentError,InexactError} convert(newtype,A)
6161
end
6262
A = Tridiagonal(zeros(n-1), [1.0:n;], fill(1., n-1)) #not morally Diagonal
6363
@test Matrix(convert(Bidiagonal, A)) == Matrix(A)

0 commit comments

Comments
 (0)