Skip to content

Commit 1cadef7

Browse files
committed
add test
1 parent a86b3c1 commit 1cadef7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/nontradaxes.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
1212

1313
N = @inferred LinearMap(B)
1414
@test axes(N) == (ax1,ax2)
15+
@test axes(N, 1) == ax1
16+
@test axes(N, 2) == ax2
17+
@test_throws ErrorException axes(N, 3)
1518

1619
@test eltype(N) == eltype(B)
1720

1821
u = similar(Array{ComplexF64}, ax2)
1922
v = PseudoBlockVector{ComplexF64}(undef, [3,5])
2023
w = similar(Array{ComplexF64}, ax1)
21-
# v = similar(Array{ComplexF64}, blockedrange([3,5]))
22-
# w = similar(Array{ComplexF64}, blockedrange([4,3]))
2324

2425
for i in eachindex(u) u[i] = rand(ComplexF64) end
2526
for i in eachindex(v) v[i] = rand(ComplexF64) end

0 commit comments

Comments
 (0)