Skip to content

Commit f4791f2

Browse files
authored
move tests to /test/misc.jl
1 parent b869a57 commit f4791f2

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

test/misc.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@testset verbose = true "Short-form add_vertex!/add_edge!" begin
2+
# short-form
3+
mg = MetaGraph(Graph(); Label=Symbol, VertexData=Nothing, EdgeData=Nothing)
4+
@test add_vertex!(mg, :A)
5+
@test add_vertex!(mg, :B)
6+
@test add_edge!(mg, :A, :B)
7+
8+
# 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)
13+
14+
# compare
15+
@test mg == mg′
16+
end

test/runtests.jl

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,7 @@ using Test
3131
end
3232
end
3333

34-
@testset verbose = true "Short-form add_vertex!/add_edge!" begin
35-
# short-form
36-
mg = MetaGraph(Graph(); Label=Symbol, VertexData=Nothing, EdgeData=Nothing)
37-
@test add_vertex!(mg, :A)
38-
@test add_vertex!(mg, :B)
39-
@test add_edge!(mg, :A, :B)
40-
41-
# long-form
42-
mg′ = MetaGraph(Graph(); Label=Symbol, VertexData=Nothing, EdgeData=Nothing)
43-
@test add_vertex!(mg′, :A, nothing)
44-
@test add_vertex!(mg′, :B, nothing)
45-
@test add_edge!(mg′, :A, :B, nothing)
46-
47-
# compare
48-
@test mg == mg′
34+
@testset verbose = true "Miscellaneous" begin
35+
include("misc.jl")
4936
end
5037
end

0 commit comments

Comments
 (0)