Skip to content

Commit a10deba

Browse files
committed
merge and fix formatting
2 parents 87797b0 + 4ab0b2c commit a10deba

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

test/misc.jl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
@testset verbose = true "Short-form add_vertex!/add_edge!" begin
22
# short-form
3-
mg = MetaGraph(Graph(); Label=Symbol, VertexData=Nothing, EdgeData=Nothing)
3+
mg = MetaGraph(
4+
Graph(); label_type=Symbol, vertex_data_type=Nothing, edge_data_type=Nothing
5+
)
46
@test add_vertex!(mg, :A)
57
@test add_vertex!(mg, :B)
68
@test add_edge!(mg, :A, :B)
79

810
# long-form
9-
mg′ = MetaGraph(Graph(); Label=Symbol, VertexData=Nothing, EdgeData=Nothing)
10-
@test add_vertex!(mg′, :A, nothing)
11-
@test add_vertex!(mg′, :B, nothing)
12-
@test add_edge!(mg′, :A, :B, nothing)
11+
mg2 = MetaGraph(
12+
Graph(); label_type=Symbol, vertex_data_type=Nothing, edge_data_type=Nothing
13+
)
14+
@test add_vertex!(mg2, :A, nothing)
15+
@test add_vertex!(mg2, :B, nothing)
16+
@test add_edge!(mg2, :A, :B, nothing)
1317

1418
# compare
15-
@test mg == mg′
16-
end
19+
@test mg == mg2
20+
end

0 commit comments

Comments
 (0)