Skip to content

Commit 8df36ff

Browse files
committed
fix: fix tests
1 parent 2b36121 commit 8df36ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GNNGraphs/test/sampling.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ if GRAPH_T == :coo
5757
nodes = [1, 2]
5858
subgraph = induced_subgraph(graph, nodes)
5959

60-
@test num_nodes(subgraph) == 2 # Subgraph should have 2 nodes
61-
@test num_edges(subgraph) == 1 # Subgraph should have 1 edge
60+
@test subgraph.num_nodes == 2 # Subgraph should have 2 nodes
61+
@test subgraph.num_edges == 1 # Subgraph should have 1 edge
6262
### TODO @test subgraph.ndata.x == graph.x[:, nodes] # Features should match the original graph
6363
end
6464
end

0 commit comments

Comments
 (0)