We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aeb3ec commit c9940edCopy full SHA for c9940ed
test/dict.jl
@@ -9,6 +9,7 @@ using Random
9
@test iterate(p)[1] == 10
10
@test iterate(p, iterate(p)[2])[1] == 20
11
@test iterate(p, iterate(p, iterate(p)[2])[2]) == nothing
12
+ @test firstindex(p) == 1
13
@test lastindex(p) == length(p) == 2
14
@test Base.indexed_iterate(p, 1, nothing) == (10,2)
15
@test Base.indexed_iterate(p, 2, nothing) == (20,3)
@@ -29,6 +30,7 @@ using Random
29
30
@test last(p) == 20
31
@test eltype(p) == Int
32
@test eltype(4 => 5.6) == Union{Int,Float64}
33
+ @test vcat(1 => 2.0, 1.0 => 2) == [1.0 => 2.0, 1.0 => 2.0]
34
end
35
36
@testset "Dict" begin
0 commit comments