Testing
Any
Expr
head: Symbol block
args: Array{Any}((2,))
1: LineNumberNode
line: Int64 2
file: Symbol /home/runner/work/disorganised-mess/disorganised-mess/testing and debugging 1.jl#==#7c35f88d-7740-4bc3-9ab6-855cc78223e2
2: Expr
head: Symbol call
args: Array{Any}((3,))
1: Symbol ==
2: Symbol a
3: QuoteNode
value: Symbol a
UndefVarError: to_eval#431 not defined
Here is what happened, the most recent locations are first:
UndefVarError: to_eval#459 not defined
Here is what happened, the most recent locations are first:
a == [1, 2, 3]
UndefVarError: to_eval#438 not defined
Here is what happened, the most recent locations are first:
iseven(234)
MethodError: no method matching getproperty(::typeof(sqrt), ::Tuple{Vector{Int64}})
Closest candidates are:
getproperty(::Any, ::Symbol) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/Base.jl:42
getproperty(::Any, ::Symbol, ::Symbol) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/Base.jl:54
Here is what happened, the most recent locations are first:
- evalfrom boot.jl:373
- eval
(x::Expr) from workspace.jl:16 - from This cell: line 6
eval(Expr(e.head, arg_results...))
end
staged_eval (generic function with 1 method)
staged_eval (generic function with 2 methods)
eval_args (generic function with 1 method)
quote_again (generic function with 1 method)
quote_again (generic function with 2 methods)
eval_args (generic function with 2 methods)
onestep (generic function with 1 method)
onestep (generic function with 2 methods)
expr_debug (generic function with 1 method)
quote let end end
quote let nothing end end
quote nothing end
nothing
let
r = if rand(Bool)
20
else
16
end
y = sqrt(4)
y == sqrt(sqrt(r))
end
prettycolors (generic function with 1 method)
Expr
head: Symbol let
args: Array{Any}((2,))
1: Expr
head: Symbol block
args: Array{Any}((0,))
2: Expr
head: Symbol block
args: Array{Any}((3,))
1: Expr
head: Symbol =
args: Array{Any}((2,))
1: Symbol r
2: Expr
head: Symbol if
args: Array{Any}((3,))
1: Expr
head: Symbol call
args: Array{Any}((2,))
1: Symbol rand
2: Symbol Bool
2: Expr
head: Symbol block
args: Array{Any}((1,))
1: Int64 20
3: Expr
head: Symbol block
args: Array{Any}((1,))
1: Int64 16
2: Expr
head: Symbol =
args: Array{Any}((2,))
1: Symbol y
2: Expr
head: Symbol call
args: Array{Any}((2,))
1: Symbol sqrt
2: Int64 4
3: Expr
head: Symbol call
args: Array{Any}((3,))
1: Symbol ==
2: Symbol y
3: Expr
head: Symbol call
args: Array{Any}((2,))
1: Symbol sqrt
2: Expr
head: Symbol call
args: Array{Any}((2,))
1: Symbol sqrt
2: Symbol r
UndefVarError: a not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- evalfrom workspace.jl:16
- staged_evalfrom Other cell: line 9
a
else
eval(a)
end
for (i,a) in enumerate(e.args)]
- Show more...
UndefVarError: a not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- evalfrom workspace.jl:16
- staged_evalfrom Other cell: line 9
a
else
eval(a)
end
for (i,a) in enumerate(e.args)]
- Show more...
UndefVarError: a not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- evalfrom workspace.jl:16
- staged_evalfrom Other cell: line 9
a
else
eval(a)
end
for (i,a) in enumerate(e.args)]
- Show more...
1.41421
:sqrt
2.0
:(sqrt(2.0))
2.23607
nothing
:(sqrt.(5))
Expr
head: Symbol .
args: Array{Any}((2,))
1: Symbol sqrt
2: Expr
head: Symbol tuple
args: Array{Any}((1,))
1: Int64 5
Base.Broadcast.BroadcastFunction(==)
Base.Broadcast.BroadcastFunction(==)
UndefVarError: .== not defined
Here is what happened, the most recent locations are first:
- from :0
- evalfrom boot.jl:373
- eval
(x::Symbol) from workspace.jl:16 - from This cell: line 1
eval(Symbol(".=="))
2.23606797749979
UndefVarError: a not defined
Here is what happened, the most recent locations are first:
- evalfrom boot.jl:373
- eval
(x::Expr) from workspace.jl:16 - from This cell: line 1
eval(Expr(:call, Symbol(".=="), :a, :a))
@test3 (macro with 1 method)
quote
var"#491#expr_raw" = $(QuoteNode(:(a .== :a)))
try
(var"#492#result", var"#493#arg_results") = Main.workspace#4.staged_eval(var"#491#expr_raw")
if var"#492#result" === true
Main.workspace#4.Pass(var"#491#expr_raw")
else
Main.workspace#4.Wrong(var"#491#expr_raw", var"#492#result", Main.workspace#4.to_eval)
end
catch var"#496#e"
Main.workspace#4.rethrow(var"#496#e")
Main.workspace#4.Error(var"#491#expr_raw", var"#496#e")
end
end
true
quote_if_needed (generic function with 1 method)
quote_if_needed (generic function with 2 methods)
1
2
3
@test2 (macro with 1 method)
:($(Expr(:escape, :(==))))
:($(Expr(:escape, :notebook1)))
:($(Expr(:escape, :(deepcopy(notebook1)))))
DisplayOnly
skip_as_script (generic function with 1 method)
@displayonly expression
Marks a expression as Pluto-only, which means that it won't be executed when running outside Pluto. Do not use this for your own projects.
The opposite of @skip_as_script
2
:($(Expr(:escape, :(==))))
:($(Expr(:escape, :(1 + 1))))
:($(Expr(:escape, :x)))
:($(Expr(:escape, :(==))))
:($(Expr(:escape, :(1 + 1 + 1))))
:($(Expr(:escape, :x)))
:($(Expr(:escape, :(==))))
:($(Expr(:escape, :(error("Oh my god")))))
:($(Expr(:escape, :x)))
Track
sleep(0.1)
Tracked
@track (macro with 1 method)
prettytime (generic function with 1 method)