Skip to content

Commit

Permalink
Generalize exception type
Browse files Browse the repository at this point in the history
In preparation for JuliaLang/julia#41885
  • Loading branch information
timholy committed Aug 20, 2021
1 parent 55004f1 commit 64db767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const LC = LinearCovarianceModels

D = generic_diagonal(6, 3)
@test dim(D) == 3
@test_throws ArgumentError generic_diagonal(6, 0)
@test_throws Union{ArgumentError,MethodError} generic_diagonal(6, 0)
@test_throws ArgumentError generic_diagonal(6, 7)

D = generic_subspace(6, 4)
@test dim(D) == 4
@test_throws ArgumentError generic_subspace(6, binomial(6+1,2)+1)
@test_throws ArgumentError generic_subspace(6, 0)
@test_throws Union{ArgumentError,MethodError} generic_subspace(6, 0)

# @test_throws ArgumentError LCModel(toeplitz(3).Σ .^2)

Expand Down

0 comments on commit 64db767

Please sign in to comment.