File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,12 @@ let i = 0
306306 i <= 10 || break
307307 end
308308end
309+ @test (@inferred eltype (repeated (0 ))) == Int
310+ @test (@inferred eltype (repeated (0 , 5 ))) == Int
309311@test (@inferred Base. IteratorSize (repeated (0 ))) == Base. IsInfinite ()
310312@test (@inferred Base. IteratorSize (repeated (0 , 5 ))) == Base. HasLength ()
313+ @test (@inferred Base. IteratorEltype (repeated (0 ))) == Base. HasEltype ()
314+ @test (@inferred Base. IteratorEltype (repeated (0 , 5 ))) == Base. HasEltype ()
311315@test (@inferred Base. IteratorSize (zip (repeated (0 ), repeated (0 )))) == Base. IsInfinite ()
312316
313317# called
@@ -326,12 +330,8 @@ let i = 0
326330 i <= 10 || break
327331 end
328332end
329- @test (@inferred eltype (called (Returns (1 )))) == Int
330- @test (@inferred eltype (called (() -> Dict {Any, Any} (), 5 ))) == Dict{Any, Any}
331333@test (@inferred Base. IteratorSize (called (Returns (1 )))) == Base. IsInfinite ()
332334@test (@inferred Base. IteratorSize (called (Returns (1 ), 5 ))) == Base. HasLength ()
333- @test (@inferred Base. IteratorEltype (called (Returns (1 )))) == Base. HasEltype ()
334- @test (@inferred Base. IteratorEltype (called (Returns (1 ), 5 ))) == Base. HasEltype ()
335335@test (@inferred Base. IteratorSize (zip (called (Returns (1 )), called (Returns (1 ))))) == Base. IsInfinite ()
336336
337337# product
You can’t perform that action at this time.
0 commit comments