Skip to content

Commit fed4ebb

Browse files
committed
Don't use begin in indexing
1 parent 2318c56 commit fed4ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ end
409409
@test first(x,2) == first(y,2)
410410
@test Base.IteratorSize(y) == Base.IteratorSize(x)
411411
s = Iterators.Stateful(y)
412-
@test first(s, 2) == y[begin .+ (0:1)]
413-
@test first(s, 2) == y[begin .+ (2:3)]
412+
@test first(s, 2) == x[1:2]
413+
@test first(s, 2) == x[3:4]
414414
end
415415
end
416416

0 commit comments

Comments
 (0)