Skip to content

Commit bd6a8bd

Browse files
committed
adding test for #87
1 parent 073cd69 commit bd6a8bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/metagraphs.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@ import Base64:
435435
@test get_prop(mga, 5, :prop) == "node5"
436436
@test get_prop(mga, 1, :prop) == "newnode1"
437437

438+
# test for 87
439+
mdg = MetaDiGraph(2)
440+
add_edge!(mdg, 2, 2)
441+
rem_vertex!(mdg, 1)
442+
@test neighbors(mdg, 1) == [1]
443+
@test nv(mdg) == 1
438444

439445
end
440446

0 commit comments

Comments
 (0)