File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ iterate(np::PrevPrimes, state=np.start) =
732
732
end
733
733
734
734
IteratorSize (:: Type{<:PrevPrimes} ) = Base. SizeUnknown ()
735
- Iteratoreltype (:: Type{<:PrevPrimes} ) = Base. HasEltype ()
735
+ IteratorEltype (:: Type{<:PrevPrimes} ) = Base. HasEltype ()
736
736
737
737
eltype (:: Type{PrevPrimes{T}} ) where {T} = T
738
738
Original file line number Diff line number Diff line change 405
405
@test nextprimes (1 , 1 )[1 ] == nextprimes (2 , 1 )[1 ] == 2
406
406
@test nextprimes (3 , 1 )[1 ] == 3
407
407
@test nextprimes (4 , 1 )[1 ] == nextprimes (5 , 1 )[1 ] == 5
408
+ @test eltype (nextprimes (10 )) == Int
409
+ @test eltype (nextprimes (big (10 ))) == BigInt
408
410
end
409
411
410
412
421
423
@test length (p8) == 31
422
424
@test p8[end ] == 2
423
425
@test p8[1 ] == 127
426
+ @test eltype (p8) == Int8
424
427
end
425
-
428
+ @test eltype (prevprimes (10 )) == Int
429
+ @test eltype (prevprimes (big (10 ))) == BigInt
426
430
end
You can’t perform that action at this time.
0 commit comments