Skip to content

Commit

Permalink
Add a test for iterating a non-iterable object (JuliaLang#28398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno authored and vtjnash committed Aug 2, 2018
1 parent b526c52 commit b4ed9d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6651,4 +6651,8 @@ function foo28326(a)
return true
end
end
@test foo28326(Vector(undef, 1))
@test foo28326(Vector(undef, 1))

# Issue #28392
struct Foo28392; end
@test_throws MethodError iterate(Foo28392())

0 comments on commit b4ed9d3

Please sign in to comment.