Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctest failures #119

Open
mortenpi opened this issue Jul 24, 2021 · 0 comments
Open

Doctest failures #119

mortenpi opened this issue Jul 24, 2021 · 0 comments

Comments

@mortenpi
Copy link
Member

There are a few doctest failures, probably due to printing changes between Julia versions. Also, doctest failures do not currently fail the documentation build.

┌ Error: doctest failure in ~/work/DocStringExtensions.jl/DocStringExtensions.jl/src/utilities.jl:221-245
│ 
│ ```jldoctest; setup = :(using DocStringExtensions)
│ julia> DocStringExtensions.find_tuples(Tuple{String,Number,Int})
│ 1-element Array{DataType,1}:
│  Tuple{String,Number,Int64}
│ 
│ julia> DocStringExtensions.find_tuples(Tuple{T} where T <: Integer)
│ 1-element Array{DataType,1}:
│  Tuple{T<:Integer}
│ 
│ julia> s = Union{
│          Tuple{Int64},
│          Tuple{U},
│          Tuple{T},
│          Tuple{Int64,T},
│          Tuple{Int64,T,U}
│        } where U where T;
│ 
│ julia> DocStringExtensions.find_tuples(s)
│ 5-element Array{DataType,1}:
│  Tuple{Int64}
│  Tuple{U}
│  Tuple{T}
│  Tuple{Int64,T}
│  Tuple{Int64,T,U}
│ ```
│ 
│ Subexpression:
│ 
│ DocStringExtensions.find_tuples(Tuple{String,Number,Int})
│ 
│ Evaluated output:
│ 
│ 1-element Vector{DataType}:
│  Tuple{String, Number, Int64}
│ 
│ Expected output:
│ 
│ 1-element Array{DataType,1}:
│  Tuple{String,Number,Int64}
│ 
│     Tuple{T<:Integer}
└ @ Documenter.DocTests ~/.julia/packages/Documenter/oBZFM/src/DocTests.jl:385
┌ Error: doctest failure in ~/work/DocStringExtensions.jl/DocStringExtensions.jl/src/utilities.jl:221-245
│ 
│ ```jldoctest; setup = :(using DocStringExtensions)
│ julia> DocStringExtensions.find_tuples(Tuple{String,Number,Int})
│ 1-element Array{DataType,1}:
│  Tuple{String,Number,Int64}
│ 
│ julia> DocStringExtensions.find_tuples(Tuple{T} where T <: Integer)
│ 1-element Array{DataType,1}:
│  Tuple{T<:Integer}
│ 
│ julia> s = Union{
│          Tuple{Int64},
│          Tuple{U},
│          Tuple{T},
│          Tuple{Int64,T},
│          Tuple{Int64,T,U}
│        } where U where T;
│ 
│ julia> DocStringExtensions.find_tuples(s)
│ 5-element Array{DataType,1}:
│  Tuple{Int64}
│  Tuple{U}
│  Tuple{T}
│  Tuple{Int64,T}
│  Tuple{Int64,T,U}
│ ```
│ 
│ Subexpression:
│ 
│ DocStringExtensions.find_tuples(s)
│ 
│ Evaluated output:
│ 
│ 5-element Vector{DataType}:
│  Tuple{Int64}
│  Tuple{U}
│  Tuple{T}
│  Tuple{Int64, T}
│  Tuple{Int64, T, U}
│ 
│ Expected output:
│ 
│ 5-element Array{DataType,1}:
│  Tuple{Int64}
│  Tuple{U}
│  Tuple{T}
│  Tuple{Int64,T}
│  Tuple{Int64,T,U}
│ 
│   diff =
│    5-element Array{DataType,1}:
│     Vector{DataType}:
│     Tuple{Int64}
│     Tuple{U}
│     Tuple{T}
│     Tuple{Int64,T}
│     Tuple{Int64,T,U}Tuple{Int64, T}
│     Tuple{Int64, T, U}
└ @ Documenter.DocTests ~/.julia/packages/Documenter/oBZFM/src/DocTests.jl:385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant