Skip to content

Commit

Permalink
improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Oct 25, 2023
1 parent 5c48b3e commit 8a62958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/core/test_diviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_view_len(diedgelist2):

def test_bunch_view(diedgelist2):
H = xgi.DiHypergraph(diedgelist2)
bunch_view = H.edges.from_view(H.edges, bunch=[1, 2])
bunch_view = H.edges.from_view(H.edges, bunch=[2, 1])
assert len(bunch_view) == 2
assert (1 in bunch_view) and (2 in bunch_view)
assert 0 not in bunch_view
Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_view_len(edgelist2):

def test_bunch_view(edgelist1):
H = xgi.Hypergraph(edgelist1)
bunch_view = H.edges.from_view(H.edges, bunch=[1, 2])
bunch_view = H.edges.from_view(H.edges, bunch=[2, 1])
assert len(bunch_view) == 2
assert (1 in bunch_view) and (2 in bunch_view)
assert 0 not in bunch_view
Expand Down

0 comments on commit 8a62958

Please sign in to comment.