@@ -7,15 +7,15 @@ using Test, LinearAlgebra, SparseArrays
7
7
@testset " Adjoint and Transpose inner constructor basics" begin
8
8
intvec, intmat = [1 , 2 ], [1 2 ; 3 4 ]
9
9
# Adjoint/Transpose eltype must match the type of the Adjoint/Transpose of the input eltype
10
- @test_throws ErrorException Adjoint {Float64,Vector{Int}} (intvec)
11
- @test_throws ErrorException Adjoint {Float64,Matrix{Int}} (intmat)
12
- @test_throws ErrorException Transpose {Float64,Vector{Int}} (intvec)
13
- @test_throws ErrorException Transpose {Float64,Matrix{Int}} (intmat)
10
+ @test_throws TypeError Adjoint {Float64,Vector{Int}} (intvec)[ 1 , 1 ]
11
+ @test_throws TypeError Adjoint {Float64,Matrix{Int}} (intmat)[ 1 , 1 ]
12
+ @test_throws TypeError Transpose {Float64,Vector{Int}} (intvec)[ 1 , 1 ]
13
+ @test_throws TypeError Transpose {Float64,Matrix{Int}} (intmat)[ 1 , 1 ]
14
14
# Adjoint/Transpose wrapped array type must match the input array type
15
- @test_throws MethodError Adjoint {Int,Vector{Float64}} (intvec)
16
- @test_throws MethodError Adjoint {Int,Matrix{Float64}} (intmat)
17
- @test_throws MethodError Transpose {Int,Vector{Float64}} (intvec)
18
- @test_throws MethodError Transpose {Int,Matrix{Float64}} (intmat)
15
+ @test_throws TypeError Adjoint {Int,Vector{Float64}} (intvec)[ 1 , 1 ]
16
+ @test_throws TypeError Adjoint {Int,Matrix{Float64}} (intmat)[ 1 , 1 ]
17
+ @test_throws TypeError Transpose {Int,Vector{Float64}} (intvec)[ 1 , 1 ]
18
+ @test_throws TypeError Transpose {Int,Matrix{Float64}} (intmat)[ 1 , 1 ]
19
19
# Adjoint/Transpose inner constructor basic functionality, concrete scalar eltype
20
20
@test (Adjoint {Int,Vector{Int}} (intvec):: Adjoint{Int,Vector{Int}} ). parent === intvec
21
21
@test (Adjoint {Int,Matrix{Int}} (intmat):: Adjoint{Int,Matrix{Int}} ). parent === intmat
0 commit comments