Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
fix test on 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Oct 11, 2016
1 parent 64cdc75 commit b85ccb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ if VERSION >= v"0.5.0-dev+3305"
@test Base.iteratorsize(ch3) == Base.HasLength()
end

r = ( x for x in 1:10 if isodd(x))
ch4 = chain(1:10, r)
if VERSION >= v"0.5.0-dev+3305"
r = ( x for x in 1:10 if isodd(x))
ch4 = chain(1:10, r)
@assert Base.iteratorsize(r) == Base.SizeUnknown()
@test Base.iteratorsize(ch4) == Base.SizeUnknown()
@test_throws MethodError length(ch4)
end
@test_throws MethodError length(ch4)

# product
# -------
Expand Down

0 comments on commit b85ccb8

Please sign in to comment.