Skip to content

Commit 8306858

Browse files
committed
Fix most of the tests
1 parent 0acaa9a commit 8306858

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/compiler/inference.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ barTuple2() = fooTuple{tuple(:y)}()
273273
# issue #6050
274274
@test Core.Compiler.getfield_tfunc(
275275
Dict{Int64,Tuple{UnitRange{Int64},UnitRange{Int64}}},
276-
Core.Compiler.Const(:vals)) == Array{Tuple{UnitRange{Int64},UnitRange{Int64}},1}
276+
Core.Compiler.Const(:pairs)) == Array{Pair{Int64, Tuple{UnitRange{Int64},UnitRange{Int64}}},1}
277277

278278
# assert robustness of `getfield_tfunc`
279279
struct GetfieldRobustness

test/sets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ end
174174
@test length(k) == length(s.dict.pairs)
175175
for i in 1:length(k)
176176
if isassigned(k, i)
177-
@test k[i] == s.dict.pairs[i].first
177+
@test k[i].first == s.dict.pairs[i].first
178178
else
179179
@test !isassigned(s.dict.pairs, i)
180180
end

0 commit comments

Comments
 (0)