Skip to content

Commit 2c0c5e7

Browse files
committed
Add test
1 parent 79389f7 commit 2c0c5e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,10 @@ const testdir = dirname(@__FILE__)
144144
mktemp(writegraphs)
145145
end
146146

147+
@testset "issue #33" begin
148+
g = SimpleDiGraph([0 1 1; 0 0 1; 0 0 0])
149+
gg = StaticDiGraph(g)
150+
@test_throws BoundsError neighbors(gg, typemax(Int))
151+
end
152+
147153
end # StaticGraphs

0 commit comments

Comments
 (0)