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

Doctests failing on julia v1.6.3 #188

Closed
mforets opened this issue Oct 10, 2021 · 1 comment · Fixed by #190
Closed

Doctests failing on julia v1.6.3 #188

mforets opened this issue Oct 10, 2021 · 1 comment · Fixed by #190
Assignees

Comments

@mforets
Copy link
Member

mforets commented Oct 10, 2021

$ julia --color=yes docs/make.jl 
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
┌ Error: doctest failure in src/index.md:91-96
│ 
│ ```jldoctest quickstart
│ julia> A*A
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│     [2, 7]  [-8, 0]
│  [-12, -1]  [6, 22]
```
│ 
│ Subexpression:
│ 
│ A*A
│ 
│ Evaluated output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [1, 7]        [-8.5, 1]
│    [-12.5, 0]   [3.5, 22]
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│     [2, 7]  [-8, 0]
│  [-12, -1]  [6, 22]
│ 
│   diff =2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│        [2, 7]  [-8, 0]
│     [-12, -1]  [6, Matrix{Interval{Float64}}}:
│     [1, 7]        [-8.5, 1]
│       [-12.5, 0]   [3.5, 22]
└ @ Documenter.DocTests src/index.md:91
┌ Error: doctest failure in src/index.md:107-112
│ 
│ ```jldoctest quickstart
│ julia> A + 1/2 * A^2
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 4.5]  [-3, 2]
│  [-4, 2.5]  [-1, 9]
```
│ 
│ Subexpression:
│ 
│ A + 1/2 * A^2
│ 
│ Evaluated output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [0.5, 4.5]  [-3.25, 2.5]
│  [-4.25, 3]   [-2.25, 9]
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 4.5]  [-3, 2]
│  [-4, 2.5]  [-1, 9]
│ 
│   diff =2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│      [1, [0.5, 4.5]  [-3, 2]
│     [-4, 2.5]  [-1, [-3.25, 2.5]
│     [-4.25, 3]   [-2.25, 9]
└ @ Documenter.DocTests src/index.md:107
┌ Error: doctest failure in src/index.md:116-121
│ 
│ ```jldoctest quickstart
│ julia> quadratic_expansion(A, 1.0)
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 4.5]  [-2, 1]
│  [-3, 1.5]   [1, 7]
```
│ 
│ Subexpression:
│ 
│ quadratic_expansion(A, 1.0)
│ 
│ Evaluated output:
│ 
│ ERROR: MethodError: no method matching quadratic_expansion(::IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}, ::Float64)
│ Closest candidates are:quadratic_expansion(::IntervalMatrix, ::Real, !Matched::Real) at /home/mforets/.julia/dev/IntervalMatrices/src/exponential.jl:40quadratic_expansion(!Matched::Interval, ::Real, !Matched::Real) at /home/mforets/.julia/dev/IntervalMatrices/src/exponential.jl:67
│ Stacktrace:
│  [1] top-level scope
│    @ none:1
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 4.5]  [-2, 1]
│  [-3, 1.5]   [1, 7]
│ 
│   diff =2×2 IntervalMatrix{Float64, ERROR: MethodError: no method matching quadratic_expansion(::IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│      [1, 4.5]  [-2, 1]
│     [-3, 1.5]   [1, 7]Matrix{Interval{Float64}}}, ::Float64)
│    Closest candidates are:quadratic_expansion(::IntervalMatrix, ::Real, !Matched::Real) at /home/mforets/.julia/dev/IntervalMatrices/src/exponential.jl:40quadratic_expansion(!Matched::Interval, ::Real, !Matched::Real) at /home/mforets/.julia/dev/IntervalMatrices/src/exponential.jl:67
│    Stacktrace:
│     [1] top-level scope
│       @ none:1
└ @ Documenter.DocTests src/index.md:116
┌ Error: doctest failure in ~/.julia/dev/IntervalMatrices/src/matrix.jl:173-178
│ 
│ ```jldoctest
│ julia> [1 2; 3 4] ± [1 2; 4 5]
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [0, 2]   [0, 4]
│  [-1, 7]  [-1, 9]
```
│ 
│ Subexpression:
│ 
│ [1 2; 3 4] ± [1 2; 4 5]
│ 
│ Evaluated output:
│ 
│ 2×2 Matrix{Interval{Float64}}:
│   [0, 2]   [0, 4]
│  [-1, 7]  [-1, 9]
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [0, 2]   [0, 4]
│  [-1, 7]  [-1, 9]
│ 
│   diff =2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│      Matrix{Interval{Float64}}:
│      [0, 2]   [0, 4]
│     [-1, 7]  [-1, 9]
└ @ Documenter.DocTests ~/.julia/dev/IntervalMatrices/src/matrix.jl:173
┌ Error: doctest failure in ~/.julia/dev/IntervalMatrices/src/operations/power.jl:21-51
│ 
│ ```jldoctest
│ julia> A = IntervalMatrix([2.0..2.0 2.0..3.0; 0.0..0.0 -1.0..1.0])
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [2, 2]   [2, 3]
│  [0, 0]  [-1, 1]

│ julia> pow = IntervalMatrixPower(A);

│ julia> increment!(pow)
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [4, 4]  [2, 9]
│  [0, 0]  [0, 1]

│ julia> increment(pow)
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [8, 8]  [-1, 21]
│  [0, 0]   [-1, 1]

│ julia> get(pow)
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [4, 4]  [2, 9]
│  [0, 0]  [0, 1]

│ julia> index(pow)
│ 2

│ julia> base(pow)
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [2, 2]   [2, 3]
│  [0, 0]  [-1, 1]

```
│ 
│ Subexpression:
│ 
│ increment(pow)
│ 
│ Evaluated output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [8, 8]  [-1, 21]
│  [-0, 0]   [-1, 1]
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│  [8, 8]  [-1, 21]
│  [0, 0]   [-1, 1]
│ 
│   diff =2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│     Matrix{Interval{Float64}}}:
│      [8, 8]  [-1, 21]
│     [0, [-0, 0]   [-1, 1]
└ @ Documenter.DocTests ~/.julia/dev/IntervalMatrices/src/operations/power.jl:21
┌ Error: doctest failure in ~/.julia/dev/IntervalMatrices/src/matrix.jl:135-140
│ 
│ ```jldoctest
│ julia> IntervalMatrix([1 2; 3 4], [1 2; 4 5])
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 1]   [2, 2]
│  [3, 4]  [4, 5]
```
│ 
│ Subexpression:
│ 
│ IntervalMatrix([1 2; 3 4], [1 2; 4 5])
│ 
│ Evaluated output:
│ 
│ 2×2 Matrix{Interval{Float64}}:
│  [1, 1]  [2, 2]
│  [3, 4]  [4, 5]
│ 
│ Expected output:
│ 
│ 2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│   [1, 1]   [2, 2]
│  [3, 4]  [4, 5]
│ 
│   diff =2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
│      Matrix{Interval{Float64}}:
│     [1, 1]   1]  [2, 2]
│     [3, 4]  [4, 5]
└ @ Documenter.DocTests ~/.julia/dev/IntervalMatrices/src/matrix.jl:135
ERROR: LoadError: `makedocs` encountered a doctest error. Terminating build
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] runner(#unused#::Type{Documenter.Builder.Doctest}, doc::Documenter.Documents.Document)
   @ Documenter.Builder ~/.julia/packages/Documenter/XIxke/src/Builder.jl:217
 [3] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
   @ Documenter.Utilities.Selectors ~/.julia/packages/Documenter/XIxke/src/Utilities/Selectors.jl:170
 [4] #2
   @ ~/.julia/packages/Documenter/XIxke/src/Documenter.jl:257 [inlined]
 [5] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
   @ Base.Filesystem ./file.jl:106
 [6] #makedocs#1
   @ ~/.julia/packages/Documenter/XIxke/src/Documenter.jl:256 [inlined]
 [7] top-level scope
   @ ~/.julia/dev/IntervalMatrices/docs/make.jl:6
in expression starting at /home/mforets/.julia/dev/IntervalMatrices/docs/make.jl:6
@schillic
Copy link
Member

I added a script to build the docs again in #189.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants