Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed May 15, 2024
1 parent 6ffd019 commit e4d1507
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ using Documenter, Functors
DocMeta.setdocmeta!(Functors, :DocTestSetup, :(using Functors); recursive = true)

makedocs(modules = [Functors],
doctest = false,
sitename = "Functors.jl",
pages = ["Home" => "index.md",
"API" => "api.md"],
Expand Down
4 changes: 2 additions & 2 deletions src/keypath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ 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{Any,Any} with 2 entries:
Dict{Symbol, Any} with 2 entries:
:a => 3
:b => Dict{Any,Any}(:c=>4,"d"=>[5, 6, 7])
:b => Dict{Any, Any}(:c=>4, "d"=>[5, 6, 7])
julia> haskeypath(x, KeyPath(:a))
true
Expand Down
9 changes: 0 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,4 @@ using StaticArrays
include("base.jl")
include("keypath.jl")

if VERSION < v"1.6" # || VERSION > v"1.7-"
@warn "skipping doctests, on Julia $VERSION"
else
using Documenter
@testset "doctests" begin
DocMeta.setdocmeta!(Functors, :DocTestSetup, :(using Functors); recursive=true)
doctest(Functors, manual=true)
end
end
end

0 comments on commit e4d1507

Please sign in to comment.