Skip to content

Commit

Permalink
Compat.Iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 4, 2017
1 parent c213804 commit a2a95af
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/iterator_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,10 @@ integrator([1.0;2.0])


integrator = init(prob,RK4();dt=1//2^(9))
if VERSION < v"0.6-"
for i in take(integrator,12) end
@test integrator.iter == 12
for i in take(integrator,12) end
@test integrator.iter == 24
else
for i in Base.Iterators.take(integrator,12) end
@test integrator.iter == 12
for i in Base.Iterators.take(integrator,12) end
@test integrator.iter == 24
end
for i in Compat.Iterators.take(integrator,12) end
@test integrator.iter == 12
for i in Compat.Iterators.take(integrator,12) end
@test integrator.iter == 24

integrator = init(prob_ode_2Dlinear,Tsit5();dt=1//2^(4),tstops=[0.5],advance_to_tstop=true,stop_at_next_tstop=true)
for (t,u) in tuples(integrator)
Expand Down

0 comments on commit a2a95af

Please sign in to comment.