Skip to content

Commit

Permalink
Added Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Feb 12, 2024
1 parent 9c95545 commit 6c2cf10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_multidimgraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ using Test
@test has_vertex(g, ((1, 1), "X"))
@test has_vertex(g, ((1, 1), "Y"))

g3 = NamedGraph(grid((2, 2)); vertices=(2, 2))
g = disjoint_union("X" => g1, "Y" => g2, "Z" => g3)

@test nv(g) == 12
@test ne(g) == 12
@test has_vertex(g, ((1, 1), "X"))
@test has_vertex(g, ((1, 1), "Y"))
@test has_vertex(g, ((1, 1), "Z"))

# TODO: Need to drop the dimensions to make these equal
#@test issetequal(Graphs.vertices(g1), Graphs.vertices(g["X", :]))
#@test issetequal(edges(g1), edges(g["X", :]))
Expand Down

0 comments on commit 6c2cf10

Please sign in to comment.