Skip to content

Commit

Permalink
Fix most of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana committed Feb 24, 2022
1 parent 0acaa9a commit 8306858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/compiler/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ barTuple2() = fooTuple{tuple(:y)}()
# issue #6050
@test Core.Compiler.getfield_tfunc(
Dict{Int64,Tuple{UnitRange{Int64},UnitRange{Int64}}},
Core.Compiler.Const(:vals)) == Array{Tuple{UnitRange{Int64},UnitRange{Int64}},1}
Core.Compiler.Const(:pairs)) == Array{Pair{Int64, Tuple{UnitRange{Int64},UnitRange{Int64}}},1}

# assert robustness of `getfield_tfunc`
struct GetfieldRobustness
Expand Down
2 changes: 1 addition & 1 deletion test/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ end
@test length(k) == length(s.dict.pairs)
for i in 1:length(k)
if isassigned(k, i)
@test k[i] == s.dict.pairs[i].first
@test k[i].first == s.dict.pairs[i].first
else
@test !isassigned(s.dict.pairs, i)
end
Expand Down

0 comments on commit 8306858

Please sign in to comment.