File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -31,20 +31,7 @@ using Test
31
31
end
32
32
end
33
33
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" )
49
36
end
50
37
end
You can’t perform that action at this time.
0 commit comments