diff --git a/test/test_namedgraph.jl b/test/test_namedgraph.jl index 48bc3d2..08d9fa2 100644 --- a/test/test_namedgraph.jl +++ b/test/test_namedgraph.jl @@ -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