From 5c725b6eba44f4c4029b04705faae3000755218b Mon Sep 17 00:00:00 2001 From: Miles Date: Tue, 28 May 2024 18:34:24 -0400 Subject: [PATCH] Simplify test --- test/test_namedgraph.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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