Package evaluation to test MLStyle on Julia 1.14.0-DEV.2373 (cf67ecc88f*) started at 2026-06-13T02:39:35.526 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 16.12s ################################################################################ # Installation # Installing MLStyle... Resolving package versions... Installed MLStyle ─ v0.4.17 Updating `~/.julia/environments/v1.14/Project.toml` [d8e11817] + MLStyle v0.4.17 Updating `~/.julia/environments/v1.14/Manifest.toml` [d8e11817] + MLStyle v0.4.17 Installation completed after 1.43s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling project... 6.1 s ✓ TestEnv 1 dependency successfully precompiled in 6 seconds. 27 already precompiled. Precompiling package dependencies... Precompiling project... 0.5 s ✓ DataValueInterfaces 275.7 s ✓ InlineStrings 0.6 s ✓ Reexport 130.8 s ✓ OrderedCollections 1.0 s ✓ DataAPI 1.1 s ✓ Statistics 49.4 s ✓ InvertedIndices 0.5 s ✓ IteratorInterfaceExtensions 27.8 s ✓ MLStyle 36.3 s ✓ LaTeXStrings 2.1 s ✓ Crayons 138.1 s ✓ SentinelArrays 2.6 s ✓ Preferences 1.4 s ✓ Compat 146.9 s ✓ DataStructures 47.9 s ✓ Missings 21.2 s ✓ PooledArrays 0.5 s ✓ TableTraits 2.6 s ✓ PrecompileTools 0.7 s ✓ Compat → CompatLinearAlgebraExt 33.0 s ✓ SortingAlgorithms 131.0 s ✓ Tables 67.3 s ✓ StringManipulation 185.4 s ✓ PrettyTables 269.6 s ✓ DataFrames 25 dependencies successfully precompiled in 1574 seconds. 15 already precompiled. Precompilation completed after 1610.2s ################################################################################ # Testing # Testing MLStyle Status `/tmp/jl_KuYcyV/Project.toml` [a93c6f00] DataFrames v1.8.2 [864edb3b] DataStructures v0.19.5 [d8e11817] MLStyle v0.4.17 [8dfed614] Test v1.11.0 Status `/tmp/jl_KuYcyV/Manifest.toml` [34da2185] Compat v4.18.1 [a8cc5b0e] Crayons v4.1.1 [9a962f9c] DataAPI v1.16.0 [a93c6f00] DataFrames v1.8.2 [864edb3b] DataStructures v0.19.5 [e2d170a0] DataValueInterfaces v1.0.0 [842dd82b] InlineStrings v1.4.5 [41ab1584] InvertedIndices v1.3.1 [82899510] IteratorInterfaceExtensions v1.0.0 [b964fa9f] LaTeXStrings v1.4.0 [d8e11817] MLStyle v0.4.17 [e1d29d7a] Missings v1.2.0 ⌅ [bac558e1] OrderedCollections v1.8.2 [2dfb63ee] PooledArrays v1.4.3 [aea7be01] PrecompileTools v1.3.4 [21216c6a] Preferences v1.5.2 [08abe8d2] PrettyTables v3.3.2 [189a3867] Reexport v1.2.2 [91c51154] SentinelArrays v1.4.10 [a2af1166] SortingAlgorithms v1.2.2 [10745b16] Statistics v1.11.1 [892a3eda] StringManipulation v0.4.4 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.12.1 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [7b1f6079] FileWatching v1.11.0 [9fa8497b] Future v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.13.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.14.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [de0858da] Printf v1.11.0 [3fa0cd96] REPL v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v1.13.0 [9e88b42a] Serialization v1.11.0 [6462fe0b] Sockets v1.11.0 [f489334b] StyledStrings v1.13.0 [fa267f1f] TOML v1.0.3 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.5.2+0 [4536629a] OpenBLAS_jll v0.3.33+0 [8e850b90] libblastrampoline_jll v5.15.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... ┌ Warning: No need to use this function anymore since MLStyle v0.4 at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:53 └ @ MLStyle.Extension ~/.julia/packages/MLStyle/SLOsr/src/Extension.Deprecated.jl:22 ┌ Warning: No need to use this function anymore since MLStyle v0.4 │ caller = macro expansion at Extension.Deprecated.jl:23 └ @ Core ~/.julia/packages/MLStyle/SLOsr/src/Extension.Deprecated.jl:23 error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =# @when() catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MethodError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MethodError: no method matching var"@when"(::LineNumberNode, ::Module) The function `@when` exists, but no method is defined for this combination of argument types. Closest candidates are: var"@when"(::LineNumberNode, ::Module, !Matched::Any) @ MLStyle ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:206 var"@when"(::LineNumberNode, ::Module, !Matched::Any, !Matched::Any) @ MLStyle ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:212 Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:271 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MethodError: no method matching var"@when"(::LineNumberNode, ::Module) The function `@when` exists, but no method is defined for this combination of argument types. Closest candidates are: var"@when"(::LineNumberNode, ::Module, !Matched::Any) @ MLStyle ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:206 var"@when"(::LineNumberNode, ::Module, !Matched::Any, !Matched::Any) @ MLStyle ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:212 Stacktrace: [1] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [2] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [3] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [4] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [5] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [6] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [7] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [8] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [11] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[14] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:271 [inlined] ╰──── repeated 2 times ┌[16] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:271 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =# @when(x, 1) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:275 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:213 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:219 [inlined] [3] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [4] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [5] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [6] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [7] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [8] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [9] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [10] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [13] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[16] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:275 [inlined] ╰──── repeated 2 times ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:275 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =# @when(1, 1) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`") Thrown: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 0:-1, 0:-1, 1:4, 0:-1], [1, 2, 3, 4], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"Value", 2 => K"Value", 1 => K"Identifier", 4 => K"Value", 5 => K"macrocall", 6 => K"Identifier"), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(1 => "@when", 6 => "@when"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(6 => 1), :value => Dict(3 => 1, 2 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#), 4 => 1), :jl_source => Dict(), :is_toplevel_thunk => Dict(), :source => Dict(3 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#), 2 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#), 1 => :(#= none:0 =#), 4 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#), 5 => :(#= none:0 =#), 6 => 1), :__macro_ctx__ => Dict())), (macrocall @when :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#) 1 1), Base.JuliaLowering.ScopeLayer(1, Main.TestModule, 0, false, false), true), (macrocall @when :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#) 1 1), "Error expanding macro", :all, MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`")) MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:276 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Not match the form of `@when a = b expr`") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:213 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:219 [inlined] [3] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [4] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [5] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [6] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [7] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [8] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [9] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [10] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [13] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[16] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:276 [inlined] ╰──── repeated 2 times ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:276 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =# @when(1) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `1` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:280 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `1` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:87 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:132 [inlined] [3] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:142 [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:207 [inlined] [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [12] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:280 [inlined] ╰──── repeated 2 times ┌[20] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:280 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =# @when(x) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `x` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:281 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `x` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:87 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:132 [inlined] [3] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:142 [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:207 [inlined] [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [12] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:281 [inlined] ╰──── repeated 2 times ┌[20] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:281 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# @when(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# @when()) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `#= /home/pkgeval/.ju` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:282 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `#= /home/pkgeval/.ju` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:87 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:132 [inlined] [3] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:142 [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:207 [inlined] [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [12] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:282 [inlined] ╰──── repeated 2 times ┌[20] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:282 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# @when(begin #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# end) catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError Thrown: Base.JuliaLowering.MacroExpansionError MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `begin\n #= /home/p` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:283 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @when in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("Expected a let expression, got a `begin\n #= /home/p` at #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =#.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:87 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:132 [inlined] [3] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:142 [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:207 [inlined] [5] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [6] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [7] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [8] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [9] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [10] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [11] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [12] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [15] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:283 [inlined] ╰──── repeated 2 times ┌[20] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:283 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] error handles: Test Failed at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 Expression: try #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 =# @eval #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =# @otherwise() catch err #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# while err isa LoadError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:45 =# err = err.error #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:44 =# end #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:47 =# throw(err) end Expected: MLStyle.Err.SyntaxError("@otherwise is only used inside @when block, as a token to indicate default case.") Thrown: Base.JuliaLowering.MacroExpansionError(Base.JuliaLowering.MacroContext(Base.JuliaSyntax.SyntaxGraph{Dict{Symbol, Dict{Int64, Any}}}(UnitRange{Int64}[0:-1, 0:-1, 1:2, 0:-1], [1, 2], Dict{Symbol, Dict{Int64, Any}}(:mod => Dict(), :kind => Dict(3 => K"macrocall", 2 => K"Value", 1 => K"Identifier", 4 => K"Identifier"), :var_id => Dict(), :toplevel_pure => Dict(), :scope_type => Dict(), :macro_source => Dict(), :name_val => Dict(1 => "@otherwise", 4 => "@otherwise"), :syntax_flags => Dict(), :meta => Dict(), :scope_layer => Dict(4 => 1), :value => Dict(2 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#)), :jl_source => Dict(), :is_toplevel_thunk => Dict(), :source => Dict(3 => :(#= none:0 =#), 2 => :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#), 1 => :(#= none:0 =#), 4 => 1), :__macro_ctx__ => Dict())), (macrocall @otherwise :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#)), Base.JuliaLowering.ScopeLayer(1, Main.TestModule, 0, false, false), true), (macrocall @otherwise :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#)), "Error expanding macro", :all, MLStyle.Err.SyntaxError("@otherwise is only used inside @when block, as a token to indicate default case.")) MacroExpansionError while expanding @otherwise in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("@otherwise is only used inside @when block, as a token to indicate default case.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:286 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] caused by: MacroExpansionError while expanding @otherwise in module Main.TestModule: #= none:0 =# - Error expanding macro Caused by: MLStyle.Err.SyntaxError("@otherwise is only used inside @when block, as a token to indicate default case.") Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:66 [2] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/src/StandardPatterns/WhenCases.jl:80 [inlined] [3] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [4] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [5] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [6] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:67 [7] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532 [8] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined] [9] eval(mod::Module, ex::Any; opts::@Kwargs{expr_compat_mode::Bool}) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:525 [inlined] [10] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [13] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[16] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:286 [inlined] ╰──── repeated 2 times ┌[18] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:42 [inlined] ╰──── repeated 2 times Stacktrace: [1] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] [4] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:269 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2241 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2415 [inlined] ┌[7] macro expansion │ @ ~/.julia/packages/MLStyle/SLOsr/test/when.jl:286 [inlined] ╰─── repeated 2 times [9] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:41 [inlined] Test Summary: | Pass Fail Total Time @when | 54 8 62 12.8s docstring | 5 5 0.0s Only @when | 10 10 0.0s @when + @data | 3 3 0.0s when with predicates | 2 2 0.0s @when in @when | 9 9 0.1s @when + @otherwise | 13 13 0.1s @when + @otherwise with many bidings | 10 10 0.1s multiple statements for each case | 2 2 0.0s error handles | 8 8 12.5s RNG of the outermost testset: Random.Xoshiro(0x091f80c8a218fc28, 0xe6a95f8413ae464d, 0x61e3fe590e3479fb, 0x0bd37d25b0a3dbe4, 0xf9580319f8a53432) ┌ Info: JuliaLowering threw given input: │ code = │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:1 =# @testcase "@when" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:2 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:2 =# @lift #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:2 =# @data(WhenTest, begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:3 =# │ WhenTest_1(Int) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:4 =# │ WhenTest_2(Int) │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:7 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:7 =# @testset "docstring" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:9 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:9 =# @test 3 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:9 =# @when((a, b) = (1, 2), begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:10 =# │ a + b │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:11 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:11 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:12 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:14 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:14 =# @test 0 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:14 =# @when((a, b) = (), begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:15 =# │ a + b │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:16 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:16 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:17 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:21 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:21 =# @test (1, 2, 3) == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:21 =# @when(let (a, 1) = (1, 1), [b, c, 5] = [2, 3, 5] │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:23 =# │ (a, b, c) │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:26 =# │ x = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:27 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:27 =# @test :int == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:27 =# @when(let (_, _) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:28 =# │ :tuple │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:29 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:29 =# @when begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:29 =# │ ::Float64 = x │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:30 =# │ :float │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:31 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:31 =# @when ::Int = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:32 =# │ :int │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:33 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:33 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:34 =# │ :unknown │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:37 =# │ x = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:38 =# │ y = (1, 2) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:39 =# │ cond1 = true │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:40 =# │ cond2 = true │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:41 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:41 =# @test 3 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:41 =# @when(let cond1.:var"?", (a, b) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:43 =# │ a + b │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:44 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:44 =# @when begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:44 =# │ if cond2 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:44 =# │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:45 =# │ (a, b) = y │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:47 =# │ a + b │ end) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:51 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:51 =# @testset "Only @when" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:52 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:52 =# @test 2 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:52 =# @when(let (a, 1) = (2, 1) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:53 =# │ a │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:55 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:55 =# @test 2 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:55 =# @when((a, 1) = (2, 1), a) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:57 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:57 =# @test 2 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:57 =# @when(let 1 = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:58 =# │ 2 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:60 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:60 =# @test 2 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:60 =# @when(1 = 1, 2) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:62 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:62 =# @test 1 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:62 =# @when(let a = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:63 =# │ a │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:65 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:65 =# @test 1 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:65 =# @when(a = 1, a) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:67 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:67 =# @test nothing === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:67 =# @when(let (a, b) = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:68 =# │ a + b │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:70 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:70 =# @test nothing === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:70 =# @when((a, b) = 1, a + b) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:72 =# │ ab = (2, 3) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:73 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:73 =# @test 5 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:73 =# @when(let (a, b) = ab │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:74 =# │ a + b │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:76 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:76 =# @test 5 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:76 =# @when((a, b) = ab, a + b) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:79 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:79 =# @testset "@when + @data" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:81 =# │ var1 = WhenTest_1(2) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:82 =# │ var2 = WhenTest_2(2) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =# @test 200 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =# @when(let WhenTest_1(x) = begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =# │ var1 │ end, #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:84 =# @inline(WhenAction(x) = begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:84 =# │ 100x │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:85 =# │ WhenAction(x) │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =# @test 200 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =# @when(WhenTest_1(x) = begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =# │ var1 │ end, begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:89 =# │ 100x │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =# @test nothing === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =# @when(let WhenTest_1(x) = begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =# │ var2 │ end, #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:93 =# @inline(WhenAction(x) = begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:93 =# │ 100x │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:94 =# │ WhenAction(x) │ end) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:98 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:98 =# @testset "when with predicates" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =# @test 2 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =# @when(let if 1 > 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =# │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:100 =# │ 2 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:102 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:102 =# @test 3 === #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:102 =# @when(let (a, b) = (1, 2), (1 > 0).:var"?" │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:104 =# │ a + b │ end) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:108 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:108 =# @testset "@when in @when" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:109 =# │ function f1(args...) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:109 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:110 =# │ x = Tuple(args) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:111 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:111 =# @when (a, 1) = x begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:112 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:113 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:113 =# @when (b, 2) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:114 =# │ (2, b) │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:118 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:118 =# @test f1(111, 1) == 111 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:119 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:119 =# @test f1(222, 1) == 222 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:121 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:121 =# @test f1(111, 2) == (2, 111) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:122 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:122 =# @test f1(222, 2) == (2, 222) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:124 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:124 =# @test f1() == nothing │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:126 =# │ function f2(args...) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:126 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:127 =# │ x = Tuple(args) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:128 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:128 =# @when (a, 1) = x begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:129 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:130 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:130 =# @when (b, 2) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:131 =# │ (:b, b) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:132 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:132 =# @when (c, 3) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:133 =# │ (:c, c) │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:136 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:136 =# @test f2(10, 1) == 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:137 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:137 =# @test f2(20, 2) == (:b, 20) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:138 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:138 =# @test f2(30, 3) == (:c, 30) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:139 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:139 =# @test f2() == nothing │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:142 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:142 =# @testset "@when + @otherwise" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:143 =# │ function f1(args...) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:143 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:144 =# │ x = Tuple(args) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:145 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:145 =# @when (a, 1) = x begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:146 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:147 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:147 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:148 =# │ x │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:151 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:151 =# @test f1(1) == (1,) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:152 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:152 =# @test f1(1, 2) == (1, 2) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:153 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:153 =# @test f1(2, 1) == 2 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:155 =# │ function f2(args...) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:155 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:156 =# │ x = Tuple(args) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:157 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:157 =# @when (a, 1) = x begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:158 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:159 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:159 =# @when (b, 2) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:160 =# │ (:b, b) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:161 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:161 =# @when (c, 3) = x │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:162 =# │ (:c, c) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:163 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:163 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:164 =# │ x │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:167 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:167 =# @test f2(1) == (1,) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:168 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:168 =# @test f2(1, 0) == (1, 0) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:169 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:169 =# @test f2(10, 1) == 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:170 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:170 =# @test f2(20, 2) == (:b, 20) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:171 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:171 =# @test f2(30, 3) == (:c, 30) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:173 =# │ xy = (1, 3) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:174 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:174 =# @test 0 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:174 =# @when(let (a, 1) = xy │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:175 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:176 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:176 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:177 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:180 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:180 =# @test 1 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:180 =# @when(let (a, 3) = xy │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:181 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:182 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:182 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:183 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:187 =# │ z = 5 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:188 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:188 =# @test 1 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:188 =# @when(let (a, 3) = xy, 5 = z │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:190 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:191 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:191 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:192 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:195 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:195 =# @test 0 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:195 =# @when(let (a, 1) = xy, 5 = z │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:197 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:198 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:198 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:199 =# │ 0 │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:202 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:202 =# @test 0 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:202 =# @when(let (a, 3) = xy, 6 = z │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:204 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:205 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:205 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:206 =# │ 0 │ end) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:210 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:210 =# @testset "@when + @otherwise with many bidings" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:211 =# │ function f1(xy, z) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:211 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:212 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:212 =# @when let (a, 1) = xy, 5 = z │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:214 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:215 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:215 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:216 =# │ 0 │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:219 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:219 =# @test f1((123, 1), 5) == 123 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:220 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:220 =# @test f1((123, 3), 5) == 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:221 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:221 =# @test f1((123, 1), 1) == 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:223 =# │ function f2(ab, c, d, e) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:223 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:224 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:224 =# @when let (a, 1) = ab, 5 = c │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:226 =# │ (a, c) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:227 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:227 =# @when begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:227 =# │ :cpp = d │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:227 =# │ 2.0 = e │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:228 =# │ (d, e) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:229 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:229 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:230 =# │ 0 │ end │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:233 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:233 =# @test f2((9, 1), 5, :c, 1.0) == (9, 5) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:234 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:234 =# @test f2((9, 1), 5, :cpp, 2.0) == (9, 5) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:235 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:235 =# @test f2((9, 2), 5, :cpp, 2.0) == (:cpp, 2.0) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:237 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:237 =# @test f2((9, 0), 5, :c00, 2.0) == 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:238 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:238 =# @test f2((9, 1), 0, :c00, 2.0) == 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:239 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:239 =# @test f2((9, 0), 5, :cpp, 0.0) == 0 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:240 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:240 =# @test f2((9, 1), 0, :cpp, 0.0) == 0 │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:242 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:242 =# @testset "multiple statements for each case" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:243 =# │ s = (1, 2, 3) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:244 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:244 =# @test 2 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:244 =# @when((a, 2, 3) = s, begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:245 =# │ k = 1 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:246 =# │ if a > 2 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:247 =# │ k *= a │ else │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:249 =# │ k += a │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:251 =# │ k │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:252 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:252 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:253 =# │ throw("") │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:256 =# │ s = (20, 3) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:257 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:257 =# @test 100 == #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:257 =# @when((10, 3) = s, begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:258 =# │ a = 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:259 =# │ a = 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:260 =# │ a = a * a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:261 =# │ a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:262 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:262 =# @otherwise │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:263 =# │ a = 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:264 =# │ a = 10 │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:265 =# │ a = a * a │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:266 =# │ a │ end) │ end │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:269 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:269 =# @testset "error handles" begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =# @test_macro_throws MethodError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =# @when() │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =# @test_macro_throws SyntaxError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =# @when(x, 1) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =# @test_macro_throws SyntaxError("Not match the form of `@when a = b expr`") #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =# @when(1, 1) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =# @test_macro_throws SyntaxError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =# @when(1) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =# @test_macro_throws SyntaxError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =# @when(x) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# @test_macro_throws SyntaxError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# @when(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =# @when()) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# @test_macro_throws SyntaxError #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# @when(begin │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =# │ end) │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =# │ #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =# @test_macro_throws SyntaxError("@otherwise is only used inside @when block, as a token to indicate default case.") #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =# @otherwise() │ end │ end) │ st0 = │ SyntaxTree with attributes mod,kind,var_id,toplevel_pure,scope_type,macro_source,name_val,syntax_flags,meta,scope_layer,value,jl_source,is_toplevel_thunk,source,__macro_ctx__ │ [macrocall] │ │ @testcase :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:1 =#) :: Value │ │ "@when" :: Value │ │ [block] │ │ [macrocall] │ │ @lift :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:2 =#) :: Value │ │ [macrocall] │ │ @data :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:2 =#) :: Value │ │ WhenTest :: Identifier │ │ [block] │ │ [call] │ │ WhenTest_1 :: Identifier │ │ Int :: Identifier │ │ [call] │ │ WhenTest_2 :: Identifier │ │ Int :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:7 =#) :: Value │ │ "docstring" :: Value │ │ [block] │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:9 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 3 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:9 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:11 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:14 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 0 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:14 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ [tuple] │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:16 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:21 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ 3 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:21 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ [tuple] │ │ 1 :: Value │ │ 1 :: Value │ │ [=] │ │ [vect] │ │ b :: Identifier │ │ c :: Identifier │ │ 5 :: Value │ │ [vect] │ │ 2 :: Value │ │ 3 :: Value │ │ 5 :: Value │ │ [block] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ c :: Identifier │ │ [=] │ │ x :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:27 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [inert] │ │ int :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:27 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ _ :: Identifier │ │ _ :: Identifier │ │ x :: Identifier │ │ [block] │ │ [inert] │ │ tuple :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:29 =#) :: Value │ │ [block] │ │ [=] │ │ [::] │ │ Float64 :: Identifier │ │ x :: Identifier │ │ [inert] │ │ float :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:31 =#) :: Value │ │ [=] │ │ [::] │ │ Int :: Identifier │ │ x :: Identifier │ │ [inert] │ │ int :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:33 =#) :: Value │ │ [inert] │ │ unknown :: Identifier │ │ [=] │ │ x :: Identifier │ │ 1 :: Value │ │ [=] │ │ y :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ [=] │ │ cond1 :: Identifier │ │ true :: Value │ │ [=] │ │ cond2 :: Identifier │ │ true :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:41 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 3 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:41 =#) :: Value │ │ [let] │ │ [block] │ │ [.] │ │ cond1 :: Identifier │ │ [inert] │ │ ? :: Identifier │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ x :: Identifier │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:44 =#) :: Value │ │ [block] │ │ [if] │ │ cond2 :: Identifier │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ y :: Identifier │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:51 =#) :: Value │ │ "Only @when" :: Value │ │ [block] │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:52 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:52 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ [tuple] │ │ 2 :: Value │ │ 1 :: Value │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:55 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:55 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ [tuple] │ │ 2 :: Value │ │ 1 :: Value │ │ a :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:57 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:57 =#) :: Value │ │ [let] │ │ [=] │ │ 1 :: Value │ │ 1 :: Value │ │ [block] │ │ 2 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:60 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:60 =#) :: Value │ │ [=] │ │ 1 :: Value │ │ 1 :: Value │ │ 2 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:62 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:62 =#) :: Value │ │ [let] │ │ [=] │ │ a :: Identifier │ │ 1 :: Value │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:65 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:65 =#) :: Value │ │ [=] │ │ a :: Identifier │ │ 1 :: Value │ │ a :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:67 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ nothing :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:67 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ 1 :: Value │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:70 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ nothing :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:70 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ 1 :: Value │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [=] │ │ ab :: Identifier │ │ [tuple] │ │ 2 :: Value │ │ 3 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:73 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 5 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:73 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ ab :: Identifier │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:76 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 5 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:76 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ ab :: Identifier │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:79 =#) :: Value │ │ "@when + @data" :: Value │ │ [block] │ │ [=] │ │ var1 :: Identifier │ │ [call] │ │ WhenTest_1 :: Identifier │ │ 2 :: Value │ │ [=] │ │ var2 :: Identifier │ │ [call] │ │ WhenTest_2 :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 200 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:83 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [call] │ │ WhenTest_1 :: Identifier │ │ x :: Identifier │ │ [block] │ │ var1 :: Identifier │ │ [macrocall] │ │ @inline :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:84 =#) :: Value │ │ [=] │ │ [call] │ │ WhenAction :: Identifier │ │ x :: Identifier │ │ [block] │ │ [call] │ │ * :: Identifier │ │ 100 :: Value │ │ x :: Identifier │ │ [block] │ │ [call] │ │ WhenAction :: Identifier │ │ x :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 200 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:88 =#) :: Value │ │ [=] │ │ [call] │ │ WhenTest_1 :: Identifier │ │ x :: Identifier │ │ [block] │ │ var1 :: Identifier │ │ [block] │ │ [call] │ │ * :: Identifier │ │ 100 :: Value │ │ x :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ nothing :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:92 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [call] │ │ WhenTest_1 :: Identifier │ │ x :: Identifier │ │ [block] │ │ var2 :: Identifier │ │ [macrocall] │ │ @inline :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:93 =#) :: Value │ │ [=] │ │ [call] │ │ WhenAction :: Identifier │ │ x :: Identifier │ │ [block] │ │ [call] │ │ * :: Identifier │ │ 100 :: Value │ │ x :: Identifier │ │ [block] │ │ [call] │ │ WhenAction :: Identifier │ │ x :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:98 =#) :: Value │ │ "when with predicates" :: Value │ │ [block] │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:99 =#) :: Value │ │ [let] │ │ [block] │ │ [if] │ │ [call] │ │ > :: Identifier │ │ 1 :: Value │ │ 0 :: Value │ │ [block] │ │ [block] │ │ 2 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:102 =#) :: Value │ │ [call] │ │ === :: Identifier │ │ 3 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:102 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ b :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ [.] │ │ [call] │ │ > :: Identifier │ │ 1 :: Value │ │ 0 :: Value │ │ [inert] │ │ ? :: Identifier │ │ [block] │ │ [call] │ │ + :: Identifier │ │ a :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:108 =#) :: Value │ │ "@when in @when" :: Value │ │ [block] │ │ [function] │ │ [call] │ │ f1 :: Identifier │ │ [...] │ │ args :: Identifier │ │ [block] │ │ [=] │ │ x :: Identifier │ │ [call] │ │ Tuple :: Identifier │ │ args :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:111 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ x :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:113 =#) :: Value │ │ [=] │ │ [tuple] │ │ b :: Identifier │ │ 2 :: Value │ │ x :: Identifier │ │ [tuple] │ │ 2 :: Value │ │ b :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:118 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 111 :: Value │ │ 1 :: Value │ │ 111 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:119 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 222 :: Value │ │ 1 :: Value │ │ 222 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:121 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 111 :: Value │ │ 2 :: Value │ │ [tuple] │ │ 2 :: Value │ │ 111 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:122 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 222 :: Value │ │ 2 :: Value │ │ [tuple] │ │ 2 :: Value │ │ 222 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:124 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ nothing :: Identifier │ │ [function] │ │ [call] │ │ f2 :: Identifier │ │ [...] │ │ args :: Identifier │ │ [block] │ │ [=] │ │ x :: Identifier │ │ [call] │ │ Tuple :: Identifier │ │ args :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:128 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ x :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:130 =#) :: Value │ │ [=] │ │ [tuple] │ │ b :: Identifier │ │ 2 :: Value │ │ x :: Identifier │ │ [tuple] │ │ [inert] │ │ b :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:132 =#) :: Value │ │ [=] │ │ [tuple] │ │ c :: Identifier │ │ 3 :: Value │ │ x :: Identifier │ │ [tuple] │ │ [inert] │ │ c :: Identifier │ │ c :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:136 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 10 :: Value │ │ 1 :: Value │ │ 10 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:137 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 20 :: Value │ │ 2 :: Value │ │ [tuple] │ │ [inert] │ │ b :: Identifier │ │ 20 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:138 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 30 :: Value │ │ 3 :: Value │ │ [tuple] │ │ [inert] │ │ c :: Identifier │ │ 30 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:139 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ nothing :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:142 =#) :: Value │ │ "@when + @otherwise" :: Value │ │ [block] │ │ [function] │ │ [call] │ │ f1 :: Identifier │ │ [...] │ │ args :: Identifier │ │ [block] │ │ [=] │ │ x :: Identifier │ │ [call] │ │ Tuple :: Identifier │ │ args :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:145 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ x :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:147 =#) :: Value │ │ x :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:151 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 1 :: Value │ │ [tuple] │ │ 1 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:152 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 1 :: Value │ │ 2 :: Value │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:153 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ 2 :: Value │ │ 1 :: Value │ │ 2 :: Value │ │ [function] │ │ [call] │ │ f2 :: Identifier │ │ [...] │ │ args :: Identifier │ │ [block] │ │ [=] │ │ x :: Identifier │ │ [call] │ │ Tuple :: Identifier │ │ args :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:157 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ x :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:159 =#) :: Value │ │ [=] │ │ [tuple] │ │ b :: Identifier │ │ 2 :: Value │ │ x :: Identifier │ │ [tuple] │ │ [inert] │ │ b :: Identifier │ │ b :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:161 =#) :: Value │ │ [=] │ │ [tuple] │ │ c :: Identifier │ │ 3 :: Value │ │ x :: Identifier │ │ [tuple] │ │ [inert] │ │ c :: Identifier │ │ c :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:163 =#) :: Value │ │ x :: Identifier │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:167 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 1 :: Value │ │ [tuple] │ │ 1 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:168 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 1 :: Value │ │ 0 :: Value │ │ [tuple] │ │ 1 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:169 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 10 :: Value │ │ 1 :: Value │ │ 10 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:170 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 20 :: Value │ │ 2 :: Value │ │ [tuple] │ │ [inert] │ │ b :: Identifier │ │ 20 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:171 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ 30 :: Value │ │ 3 :: Value │ │ [tuple] │ │ [inert] │ │ c :: Identifier │ │ 30 :: Value │ │ [=] │ │ xy :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 3 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:174 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 0 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:174 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ xy :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:176 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:180 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:180 =#) :: Value │ │ [let] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 3 :: Value │ │ xy :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:182 =#) :: Value │ │ 0 :: Value │ │ [=] │ │ z :: Identifier │ │ 5 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:188 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:188 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 3 :: Value │ │ xy :: Identifier │ │ [=] │ │ 5 :: Value │ │ z :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:191 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:195 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 0 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:195 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ xy :: Identifier │ │ [=] │ │ 5 :: Value │ │ z :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:198 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:202 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 0 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:202 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 3 :: Value │ │ xy :: Identifier │ │ [=] │ │ 6 :: Value │ │ z :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:205 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:210 =#) :: Value │ │ "@when + @otherwise with many bidings" :: Value │ │ [block] │ │ [function] │ │ [call] │ │ f1 :: Identifier │ │ xy :: Identifier │ │ z :: Identifier │ │ [block] │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:212 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ xy :: Identifier │ │ [=] │ │ 5 :: Value │ │ z :: Identifier │ │ [block] │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:215 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:219 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ [tuple] │ │ 123 :: Value │ │ 1 :: Value │ │ 5 :: Value │ │ 123 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:220 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ [tuple] │ │ 123 :: Value │ │ 3 :: Value │ │ 5 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:221 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f1 :: Identifier │ │ [tuple] │ │ 123 :: Value │ │ 1 :: Value │ │ 1 :: Value │ │ 0 :: Value │ │ [function] │ │ [call] │ │ f2 :: Identifier │ │ ab :: Identifier │ │ c :: Identifier │ │ d :: Identifier │ │ e :: Identifier │ │ [block] │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:224 =#) :: Value │ │ [let] │ │ [block] │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 1 :: Value │ │ ab :: Identifier │ │ [=] │ │ 5 :: Value │ │ c :: Identifier │ │ [block] │ │ [tuple] │ │ a :: Identifier │ │ c :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:227 =#) :: Value │ │ [block] │ │ [=] │ │ [inert] │ │ cpp :: Identifier │ │ d :: Identifier │ │ [=] │ │ 2.0 :: Value │ │ e :: Identifier │ │ [tuple] │ │ d :: Identifier │ │ e :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:229 =#) :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:233 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 1 :: Value │ │ 5 :: Value │ │ [inert] │ │ c :: Identifier │ │ 1.0 :: Value │ │ [tuple] │ │ 9 :: Value │ │ 5 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:234 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 1 :: Value │ │ 5 :: Value │ │ [inert] │ │ cpp :: Identifier │ │ 2.0 :: Value │ │ [tuple] │ │ 9 :: Value │ │ 5 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:235 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 2 :: Value │ │ 5 :: Value │ │ [inert] │ │ cpp :: Identifier │ │ 2.0 :: Value │ │ [tuple] │ │ [inert] │ │ cpp :: Identifier │ │ 2.0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:237 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 0 :: Value │ │ 5 :: Value │ │ [inert] │ │ c00 :: Identifier │ │ 2.0 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:238 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 1 :: Value │ │ 0 :: Value │ │ [inert] │ │ c00 :: Identifier │ │ 2.0 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:239 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 0 :: Value │ │ 5 :: Value │ │ [inert] │ │ cpp :: Identifier │ │ 0.0 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:240 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ [call] │ │ f2 :: Identifier │ │ [tuple] │ │ 9 :: Value │ │ 1 :: Value │ │ 0 :: Value │ │ [inert] │ │ cpp :: Identifier │ │ 0.0 :: Value │ │ 0 :: Value │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:242 =#) :: Value │ │ "multiple statements for each case" :: Value │ │ [block] │ │ [=] │ │ s :: Identifier │ │ [tuple] │ │ 1 :: Value │ │ 2 :: Value │ │ 3 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:244 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 2 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:244 =#) :: Value │ │ [=] │ │ [tuple] │ │ a :: Identifier │ │ 2 :: Value │ │ 3 :: Value │ │ s :: Identifier │ │ [block] │ │ [=] │ │ k :: Identifier │ │ 1 :: Value │ │ [if] │ │ [call] │ │ > :: Identifier │ │ a :: Identifier │ │ 2 :: Value │ │ [block] │ │ [unknown_head] │ │ k :: Identifier │ │ a :: Identifier │ │ [block] │ │ [unknown_head] │ │ k :: Identifier │ │ a :: Identifier │ │ k :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:252 =#) :: Value │ │ [call] │ │ throw :: Identifier │ │ "" :: Value │ │ [=] │ │ s :: Identifier │ │ [tuple] │ │ 20 :: Value │ │ 3 :: Value │ │ [macrocall] │ │ @test :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:257 =#) :: Value │ │ [call] │ │ == :: Identifier │ │ 100 :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:257 =#) :: Value │ │ [=] │ │ [tuple] │ │ 10 :: Value │ │ 3 :: Value │ │ s :: Identifier │ │ [block] │ │ [=] │ │ a :: Identifier │ │ 10 :: Value │ │ [=] │ │ a :: Identifier │ │ 10 :: Value │ │ [=] │ │ a :: Identifier │ │ [call] │ │ * :: Identifier │ │ a :: Identifier │ │ a :: Identifier │ │ a :: Identifier │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:262 =#) :: Value │ │ [=] │ │ a :: Identifier │ │ 10 :: Value │ │ [=] │ │ a :: Identifier │ │ 10 :: Value │ │ [=] │ │ a :: Identifier │ │ [call] │ │ * :: Identifier │ │ a :: Identifier │ │ a :: Identifier │ │ a :: Identifier │ │ [macrocall] │ │ @testset :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:269 =#) :: Value │ │ "error handles" :: Value │ │ [block] │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =#) :: Value │ │ MethodError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:271 =#) :: Value │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =#) :: Value │ │ SyntaxError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:275 =#) :: Value │ │ x :: Identifier │ │ 1 :: Value │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#) :: Value │ │ [call] │ │ SyntaxError :: Identifier │ │ "Not match the form of `@when a = b expr`" :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:276 =#) :: Value │ │ 1 :: Value │ │ 1 :: Value │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =#) :: Value │ │ SyntaxError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:280 =#) :: Value │ │ 1 :: Value │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =#) :: Value │ │ SyntaxError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:281 =#) :: Value │ │ x :: Identifier │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =#) :: Value │ │ SyntaxError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =#) :: Value │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:282 =#) :: Value │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =#) :: Value │ │ SyntaxError :: Identifier │ │ [macrocall] │ │ @when :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:283 =#) :: Value │ │ [block] │ │ [macrocall] │ │ @test_macro_throws :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#) :: Value │ │ [call] │ │ SyntaxError :: Identifier │ │ "@otherwise is only used inside @when block, as a token to indicate default case." :: Value │ │ [macrocall] │ │ @otherwise :: Identifier │ │ :(#= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:286 =#) :: Value │ │ │ st1 = nothing │ file = "/home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl" │ line = 1 └ mod = Main.TestModule ERROR: LoadError: MacroExpansionError while expanding @testcase in module Main.TestModule: #= /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:1 =# - Error expanding macro Caused by: Some tests did not pass: 54 passed, 8 failed, 0 errored, 0 broken. Stacktrace: [1] finish(ts::Test.DefaultTestSet; print_results::Bool) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:1738 [2] finish(ts::Test.DefaultTestSet) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:1711 [3] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:36 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2262 [inlined] [5] eval(m::Module, e::Any) @ Core boot.jl:522 [6] macro expansion @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:30 [7] expand_macro(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, outer_sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:343 [8] expand_forms_1(ctx::Base.JuliaLowering.MacroExpansionContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, sl::Base.JuliaLowering.ScopeLayer) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:431 [9] expand_forms_1(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}, expr_compat_mode::Bool, macro_world::UInt64) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/macro_expansion.jl:480 [10] core_lowering_hook(code::Any, mod::Module, file::String, line::UInt64, world::UInt64, _warn::Bool) @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/hooks.jl:29 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:326 [12] top-level scope @ ~/.julia/packages/MLStyle/SLOsr/test/runtests.jl:55 [13] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:326 [14] top-level scope @ none:6 [15] eval(m::Module, e::Any) @ Core boot.jl:522 [16] exec_options(opts::Base.JLOptions) @ Base client.jl:321 [17] _start() @ Base client.jl:596 in expression starting at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/when.jl:1 in expression starting at /home/pkgeval/.julia/packages/MLStyle/SLOsr/test/runtests.jl:1 Testing failed after 159.5s ERROR: LoadError: Package MLStyle errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Operations.jl:3247 [3] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:587 [4] test(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:172 [5] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:160 [6] test(pkg::String; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:159 [inlined] [7] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:223 [8] include(mod::Module, _path::String) @ Base Base.jl:325 [9] exec_options(opts::Base.JLOptions) @ Base client.jl:355 [10] _start() @ Base client.jl:596 in expression starting at /PkgEval.jl/scripts/evaluate.jl:214 PkgEval failed after 1806.42s: package has test failures