Skip to content

Commit c9940ed

Browse files
bramtaylJeffBezanson
authored andcommitted
Missing pair tests (#34451)
1 parent 3aeb3ec commit c9940ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/dict.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ using Random
99
@test iterate(p)[1] == 10
1010
@test iterate(p, iterate(p)[2])[1] == 20
1111
@test iterate(p, iterate(p, iterate(p)[2])[2]) == nothing
12+
@test firstindex(p) == 1
1213
@test lastindex(p) == length(p) == 2
1314
@test Base.indexed_iterate(p, 1, nothing) == (10,2)
1415
@test Base.indexed_iterate(p, 2, nothing) == (20,3)
@@ -29,6 +30,7 @@ using Random
2930
@test last(p) == 20
3031
@test eltype(p) == Int
3132
@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]
3234
end
3335

3436
@testset "Dict" begin

0 commit comments

Comments
 (0)