Update some failing doctests #419
Annotations
5 errors and 1 warning
docs/src/index.md#L51
doctest failure in src/index.md:51-62
```jldoctest demo1; filter = [r"in Base at .*$", r"[^\d]\d\d\d[^\d]"]
julia> @InterPret sum([1,2,3]) # no element bigger than 4, breakpoint should not trigger
6
julia> frame, bpref = @InterPret sum([1,2,5]) # should trigger breakpoint
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
```
Subexpression:
frame, bpref = @InterPret sum([1,2,5]) # should trigger breakpoint
Evaluated output:
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
c 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
Expected output:
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
diff =
Warning: Diff output requires color.
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d c 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
|
docs/src/index.md#L69
doctest failure in src/index.md:69-84
```jldoctest demo1; filter = [r"in Base at .*$", r"[^\d]\d\d\d[^\d]"]
julia> disable(bp)
julia> @InterPret sum([1,2,5])
8
julia> enable(bp)
julia> @InterPret sum([1,2,5])
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
```
Subexpression:
@InterPret sum([1,2,5])
Evaluated output:
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
c 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
Expected output:
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
diff =
Warning: Diff output requires color.
(Frame for sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994
d c 1* 994 1 ─ nothing
2 994 │ %2 = $(QuoteNode(Colon()))
3 994 │ %3 = ($(QuoteNode(NamedTuple)))()
⋮
a = [1, 2, 5], breakpoint(sum(a::AbstractArray; dims, kw...) @ Base reducedim.jl:994, line 994))
|
src/construct.jl#L1
doctest failure in ~/work/JuliaInterpreter.jl/JuliaInterpreter.jl/src/construct.jl
```jldoctest
julia> mymethod(x) = x+1
mymethod (generic function with 1 method)
julia> JuliaInterpreter.enter_call_expr(:($mymethod(1)))
Frame for mymethod(x) in Main at none:1
1* 1 1 ─ %1 = x + 1
2 1 └── return %1
x = 1
julia> mymethod(x::Vector{T}) where T = 1
mymethod (generic function with 2 methods)
julia> a = [1.0, 2.0]
2-element Vector{Float64}:
1.0
2.0
julia> JuliaInterpreter.enter_call_expr(:($mymethod($a)))
Frame for mymethod(x::Vector{T}) where T in Main at none:1
1* 1 1 ─ return 1
x = [1.0, 2.0]
T = Float64
```
Subexpression:
JuliaInterpreter.enter_call_expr(:($mymethod(1)))
Evaluated output:
Frame for mymethod(x) @ Main none:1
1* 1 1 ─ %1 = x + 1
2 1 └── return %1
x = 1
Expected output:
Frame for mymethod(x) in Main at none:1
1* 1 1 ─ %1 = x + 1
2 1 └── return %1
x = 1
diff =
Warning: Diff output requires color.
Frame for mymethod(x) in @ Main at none:1
1* 1 1 ─ %1 = x + 1
2 1 └── return %1
x = 1
|
src/construct.jl#L1
doctest failure in ~/work/JuliaInterpreter.jl/JuliaInterpreter.jl/src/construct.jl
```jldoctest
julia> mymethod(x) = x+1
mymethod (generic function with 1 method)
julia> JuliaInterpreter.enter_call_expr(:($mymethod(1)))
Frame for mymethod(x) in Main at none:1
1* 1 1 ─ %1 = x + 1
2 1 └── return %1
x = 1
julia> mymethod(x::Vector{T}) where T = 1
mymethod (generic function with 2 methods)
julia> a = [1.0, 2.0]
2-element Vector{Float64}:
1.0
2.0
julia> JuliaInterpreter.enter_call_expr(:($mymethod($a)))
Frame for mymethod(x::Vector{T}) where T in Main at none:1
1* 1 1 ─ return 1
x = [1.0, 2.0]
T = Float64
```
Subexpression:
JuliaInterpreter.enter_call_expr(:($mymethod($a)))
Evaluated output:
Frame for mymethod(x::Vector{T}) where T @ Main none:1
1* 1 1 ─ return 1
x = [1.0, 2.0]
T = Float64
Expected output:
Frame for mymethod(x::Vector{T}) where T in Main at none:1
1* 1 1 ─ return 1
x = [1.0, 2.0]
T = Float64
diff =
Warning: Diff output requires color.
Frame for mymethod(x::Vector{T}) where T in @ Main at none:1
1* 1 1 ─ return 1
x = [1.0, 2.0]
T = Float64
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading