From d0134e9fa2ec14ba85410f467cd31578e39e72a8 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Thu, 15 Oct 2026 18:13:58 +0200 Subject: [PATCH 1/2] Fix keypath doctests depending on Dict iteration order Julia 1.13 changed the iteration order of the Dict{Any,Any} used in the getkeypath/haskeypath examples, breaking the Documentation workflow. Suppress the Dict display, which isn't the point of the example. Co-Authored-By: Claude Opus 5.5 --- src/keypath.jl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/keypath.jl b/src/keypath.jl index 2cadc1d..3c95c3c 100644 --- a/src/keypath.jl +++ b/src/keypath.jl @@ -114,10 +114,7 @@ See also [`KeyPath`](@ref), [`haskeypath`](@ref), and [`setkeypath!`](@ref). # Examples ```jldoctest -julia> x = Dict(:a => 3, :b => Dict(:c => 4, "d" => [5, 6, 7])) -Dict{Symbol, Any} with 2 entries: - :a => 3 - :b => Dict{Any, Any}(:c=>4, "d"=>[5, 6, 7]) +julia> x = Dict(:a => 3, :b => Dict(:c => 4, "d" => [5, 6, 7])); julia> getkeypath(x, KeyPath(:b, "d", 2)) 6 @@ -140,10 +137,7 @@ See also [`KeyPath`](@ref), [`getkeypath`](@ref), and [`setkeypath!`](@ref). # Examples ```jldoctest -julia> x = Dict(:a => 3, :b => Dict(:c => 4, "d" => [5, 6, 7])) -Dict{Symbol, Any} with 2 entries: - :a => 3 - :b => Dict{Any, Any}(:c=>4, "d"=>[5, 6, 7]) +julia> x = Dict(:a => 3, :b => Dict(:c => 4, "d" => [5, 6, 7])); julia> haskeypath(x, KeyPath(:a)) true From 9341ef1c00a8c76c1643f5c0da6e541a1b60161c Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Thu, 15 Oct 2026 18:18:13 +0200 Subject: [PATCH 2/2] Don't index into OrderedSet in tests OrderedCollections 2.0 (allowed since #108) removed integer indexing into OrderedSet. Co-Authored-By: Claude Opus 5.5 --- test/base.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/base.jl b/test/base.jl index d223aca..be00db8 100644 --- a/test/base.jl +++ b/test/base.jl @@ -226,8 +226,7 @@ end @test !Functors.isleaf(os) os2 = fmap(x -> 2x, os) @test os2 isa OrderedSet - @test os2[1] == 2 - @test os2[2] == 4 + @test collect(os2) == [2, 4] end @testset "Types are leaves" begin