Skip to content

Commit 7a50517

Browse files
committed
Verbose tests
1 parent 6de593f commit 7a50517

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

test/a_star.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "A*" begin
1+
@testset verbose = true "A*" begin
22
g = SimpleWeightedGraph(3) # or use `SimpleWeightedDiGraph` for directed graphs
33
add_edge!(g, 1, 2, 0.5)
44
add_edge!(g, 2, 3, 0.8)

test/connectivity.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ const graphs = [
22
:bull,
33
:chvatal,
44
:house
5-
]
6-
@testset "Connectivity" begin
5+
]
6+
@testset verbose = true "Connectivity" begin
77
for s in graphs
88
gx = smallgraph(s)
9-
9+
1010
for g in testgraphs(gx)
1111
a = adjacency_matrix(g)
1212
x = connected_components(g)

test/overrides.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "Overrides" begin
1+
@testset verbose = true "Overrides" begin
22
g3 = SimpleWeightedGraph(path_graph(5))
33
g3_d = [1. 0. 0. 0. 0.;
44
0. 2. 0. 0. 0.;

test/persistence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testset "Persistence" begin
1+
@testset verbose = true "Persistence" begin
22
gpath = joinpath(testdir, "testdata")
33
pdict = loadgraphs(joinpath(gpath, "swgs.jgz"), SWGFormat())
44
p1 = pdict["g"]

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tests = [
2020
"a_star"
2121
]
2222

23-
@testset "SimpleWeightedGraphs" begin
23+
@testset verbose = true "SimpleWeightedGraphs" begin
2424
for t in tests
2525
tp = joinpath(testdir, "$(t).jl")
2626
include(tp)

test/simpleweightededge.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import SimpleWeightedGraphs.SimpleWeightedEdge
2-
@testset "SimpleWeightedEdge" begin
2+
@testset verbose = true "SimpleWeightedEdge" begin
33
e = SimpleWeightedEdge(1, 2, 0.5)
44
e2 = SimpleWeightedEdge(1, 2)
55
e3 = SimpleWeightedEdge(1, 2, 1)

test/simpleweightedgraph.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using SimpleWeightedGraphs
22

3-
@testset "SimpleWeightedGraphs" begin
3+
@testset verbose = true "SimpleWeightedGraphs" begin
44
@info("Ignore warnings relating to adding and removing vertices and edges")
55
adjmx1 = [0 1 0; 1 1 1; 0 1 0] # SimpleWeightedGraph
66
adjmx2 = [0 1 0; 1 1 1; 1 1 0] # SimpleWeightedDiGraph
@@ -263,7 +263,7 @@ using SimpleWeightedGraphs
263263
@test_throws BoundsError g[3, 4, Val{:weight}()]
264264
@test_throws MethodError g[1, 2, Val{:wight}()]
265265
add_edge!(g, 1, 2, 5.0)
266-
266+
267267
@test g[1, 2, Val{:weight}()] 5
268268
if is_directed(G)
269269
@test g[2, 1, Val{:weight}()] 0
@@ -292,7 +292,7 @@ using SimpleWeightedGraphs
292292
@test g1 == g2
293293
@test ne(g1) == 5 # 1-2 1-3 2-3 3-4 4-1
294294
@test g1[1, 3, Val{:weight}()] 2.5
295-
295+
296296
g = SimpleWeightedGraph(cycle_graph(5))
297297
g2 = SimpleWeightedGraph(g)
298298
@test g[1, 3, Val{:weight}()] 0
@@ -317,7 +317,7 @@ using SimpleWeightedGraphs
317317
@test dg[2, 1, Val{:weight}()] 0
318318
add_edge!(dg, 2, 1, 0.6)
319319
g = SimpleWeightedGraph(dg)
320-
@test g[1, 2, Val{:weight}()] 1.1
320+
@test g[1, 2, Val{:weight}()] 1.1
321321
@test g[1, 3, Val{:weight}()] 0
322322
@test g[2, 3, Val{:weight}()] 0.5
323323
end

0 commit comments

Comments
 (0)