Skip to content

Commit 4938dba

Browse files
committed
more tests
1 parent c386729 commit 4938dba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/runtests.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,19 @@ end
3939
@test issubset(test2, test)
4040
end
4141

42+
test2 = copy(test)
43+
4244
@testset "Double check deletion" begin
4345
delete!(test, rock)
4446
@test ne(test) == 1
4547
@test filter_edges(test, isequal(:scissors_beats_paper)) == [Edge(2, 1)]
48+
delete!(test2, scissors)
49+
@test ne(test2) == 1
50+
@test filter_edges(test2, isequal(:paper_beats_rock)) == [Edge(2, 1)]
51+
rem_edge!(test, Edge(2, 1))
52+
@test ne(test) == 0
53+
rem_vertex!(test, 2)
54+
@test nv(test) == 1
4655
end
4756

4857
test = meta_graph(DiGraph(), AtVertex = Symbol, AtEdge = Float64, weight_function = identity)

0 commit comments

Comments
 (0)