@@ -39,7 +39,7 @@ function test_qr_compact(
3939 @test istriu(Rpos)
4040 @test has_positive_diagonal(Rpos)
4141 else
42- @test_throws ArgumentError qr_compact(A; positive = true )
42+ @test_throws Exception qr_compact(A; positive = true )
4343 end
4444
4545 # do we support `pivoted = true`?
@@ -48,7 +48,7 @@ function test_qr_compact(
4848 @test Qpiv * Rpiv ≈ A
4949 @test isisometric(Qpos; atol, rtol)
5050 else
51- @test_throws ArgumentError qr_compact(A; pivoted = true )
51+ @test_throws Exception qr_compact(A; pivoted = true )
5252 end
5353
5454 # do we support `blocksize = Int`?
@@ -57,7 +57,7 @@ function test_qr_compact(
5757 @test Qblocked * Rblocked ≈ A
5858 @test isisometric(Qblocked; atol, rtol)
5959 else
60- @test_throws ArgumentError qr_compact(A; blocksize = 2 )
60+ @test_throws Exception qr_compact(A; blocksize = 2 )
6161 end
6262 end
6363end
@@ -94,7 +94,7 @@ function test_qr_full(
9494 @test istriu(Rpos)
9595 @test has_positive_diagonal(Rpos)
9696 else
97- @test_throws ArgumentError qr_full(A; positive = true )
97+ @test_throws Exception qr_full(A; positive = true )
9898 end
9999
100100 # do we support `pivoted = true`?
@@ -103,7 +103,7 @@ function test_qr_full(
103103 @test Qpiv * Rpiv ≈ A
104104 @test isunitary(Qpos; atol, rtol)
105105 else
106- @test_throws ArgumentError qr_full(A; pivoted = true )
106+ @test_throws Exception qr_full(A; pivoted = true )
107107 end
108108
109109 # do we support `blocksize = Int`?
@@ -112,7 +112,7 @@ function test_qr_full(
112112 @test Qblocked * Rblocked ≈ A
113113 @test isunitary(Qblocked; atol, rtol)
114114 else
115- @test_throws ArgumentError qr_full(A; blocksize = 2 )
115+ @test_throws Exception qr_full(A; blocksize = 2 )
116116 end
117117 end
118118end
@@ -145,7 +145,7 @@ function test_qr_null(
145145 @test isleftnull(Npiv, A; atol, rtol)
146146 @test isisometric(Npiv; atol, rtol)
147147 else
148- @test_throws ArgumentError qr_null(A; pivoted = true )
148+ @test_throws Exception qr_null(A; pivoted = true )
149149 end
150150
151151 # do we support `blocksize = Int`?
@@ -154,7 +154,7 @@ function test_qr_null(
154154 @test isleftnull(Nblocked, A; atol, rtol)
155155 @test isisometric(Nblocked; atol, rtol)
156156 else
157- @test_throws ArgumentError qr_null(A; blocksize = 2 )
157+ @test_throws Exception qr_null(A; blocksize = 2 )
158158 end
159159 end
160160end
0 commit comments