Skip to content

Commit c8de80a

Browse files
committed
Coverage
1 parent 01e695c commit c8de80a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/graph.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ using Test
1515
## SparsityPatternCSC
1616

1717
@testset "SparsityPatternCSC" begin
18+
@test eltype(SparsityPatternCSC(sprand(10, 10, 0.1))) == Int
1819
@testset "Transpose" begin
1920
for _ in 1:1000
2021
m, n = rand(100:1000), rand(100:1000)
@@ -143,6 +144,7 @@ end;
143144
])
144145

145146
g = AdjacencyGraph(transpose(A) * A)
147+
@test eltype(g) == Int
146148
@test nb_vertices(g) == 8
147149
# wrong neighbors, it's okay they are filtered after
148150
@test collect(neighbors(g, 1)) == sort(vcat(1, [6, 7, 8]))

0 commit comments

Comments
 (0)