Skip to content

Commit 300235a

Browse files
committed
whoops, seed is a kwarg for the layout, not gplot
1 parent 2d9a902 commit 300235a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ karate_edges = Edge.([
3535
g = SimpleGraph(karate_edges)
3636
h = LightGraphs.WheelGraph(10)
3737

38+
test_layout(g::AbstractGraph; kws...) = spring_layout(g; seed=2017, kws...)
39+
3840
# plot and save function for visual regression tests
3941
function plot_and_save(fname, g; gplot_kwargs...)
40-
draw(PNG(fname, 8inch, 8inch), gplot(g; seed=2017, gplot_kwargs...))
42+
draw(PNG(fname, 8inch, 8inch), gplot(g; layout=test_layout, gplot_kwargs...))
4143
end
4244

4345
@testset "Karate Net" begin

0 commit comments

Comments
 (0)