We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca967ee commit 76d8312Copy full SHA for 76d8312
1 file changed
test/graph.jl
@@ -23,6 +23,16 @@ using Test
23
Sᵀ.colptr == Sᵀ_true.colptr && Sᵀ.rowval == Sᵀ_true.rowval
24
end
25
26
+ @testset "size" begin
27
+ A = spzeros(10, 20)
28
+ S = SparsityPatternCSC(A)
29
+ @test size(A) == size(S)
30
+ @test size(A, 1) == size(S, 1)
31
+ @test size(A, 2) == size(S, 2)
32
+ @test size(A, 3) == size(S, 3)
33
+ @test axes(A, 1) == axes(S, 1)
34
+ @test axes(A, 2) == axes(S, 2)
35
+ end
36
@testset "getindex" begin
37
A = sprand(Bool, 100, 100, 0.1)
38
S = SparsityPatternCSC(A)
0 commit comments