Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire committed May 28, 2024
1 parent 325f2dc commit 5c725b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_namedgraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,7 @@ end
es = [(1, 2) => (1, 3), (1, 3) => (1, 4), (1, 4) => (2, 4), (2, 4) => (3, 4)]
@test ne(st) == 4
@test nv(st) == 5
# Test that there are no degree-zero vertices in output:
zero_deg_verts = filter(v -> degree(st, v) == 0, vertices(st))
@test isempty(zero_deg_verts)
@test !any(v -> degree(st, v) == 0, vertices(st))
for e in es
@test has_edge(st, e)
end
Expand Down

0 comments on commit 5c725b6

Please sign in to comment.