File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const testdir = dirname(@__FILE__)
18
18
sg = StaticGraph (g)
19
19
sgu = StaticGraph (gu)
20
20
gempty = StaticGraph ()
21
+ gdempty = StaticDiGraph ()
21
22
@test sprint (show, sg) == " {5, 6} undirected simple static {UInt8, UInt8} graph"
22
23
@test sprint (show, sgu) == " {5, 6} undirected simple static {UInt8, UInt8} graph"
23
24
testfn (fn, args... ) =
@@ -50,9 +51,12 @@ const testdir = dirname(@__FILE__)
50
51
@test @inferred ! is_directed (hu)
51
52
@test @inferred ! is_directed (StaticGraph)
52
53
@test @inferred collect (edges (hu)) == collect (edges (sg))
53
- @test nv (gempty) == 0
54
+ # empty constructors
55
+ @test nv (gempty) === 0x00
54
56
@test typeof (LightGraphs. nv (gempty)) == UInt8
55
57
@test length (LightGraphs. edges (gempty)) === 0x00
58
+ @test nv (gdempty) === 0x00
59
+ @test length (LightGraphs. edges (gdempty)) === 0x00
56
60
end # staticgraph
57
61
58
62
@testset " staticdigraph" begin
You can’t perform that action at this time.
0 commit comments