Skip to content

Commit

Permalink
Add EdgeIndex identity tests (#9238)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Apr 25, 2024
1 parent 5c4aa64 commit 3573d21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_edge_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def test_identity(dtype, device, is_undirected):
assert out.sort_order == adj.sort_order
assert out.is_undirected == adj.is_undirected

out = EdgeIndex(adj, sparse_size=(4, 4), sort_order='row')
assert out.sparse_size() == (4, 4)
assert out.sort_order == 'row'


@withCUDA
@pytest.mark.parametrize('dtype', DTYPES)
Expand Down

0 comments on commit 3573d21

Please sign in to comment.