Skip to content

Commit c46c2c3

Browse files
test fmt
1 parent 050e1b3 commit c46c2c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

GNNGraphs/test/query.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ end
271271
end[1]
272272

273273
@test gw == [1, 1, 1]
274+
275+
@testset "fmt" begin
276+
Asparse = adjacency_matrix(g, weighted = false, fmt = :sparse)
277+
@test Asparse isa AbstractSparseMatrix
278+
Adense = adjacency_matrix(g, weighted = false, fmt = :dense)
279+
@test Adense isa AbstractMatrix
280+
@test !(Adense isa AbstractSparseMatrix)
281+
@test collect(Asparse) == Adense
274282
end
275283
end
276284

0 commit comments

Comments
 (0)