Skip to content

Unified interface for constructors containing variable names #1988

Unified interface for constructors containing variable names

Unified interface for constructors containing variable names #1988

Triggered via pull request June 30, 2023 13:31
Status Failure
Total duration 14m 48s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

CI.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

16 errors
test (1.6, ubuntu-latest)
Process completed with exit code 1.
Documentation: src/misc/VarNames.jl#L257
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:257-275 ```jldoctest julia> f(a, s::Symbol) = a, s f (generic function with 1 method) julia> @varname_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", "x") ("hello", :x) julia> @f "hello" x "hello" julia> x :x ``` Subexpression: @varname_interface f(a, s) Evaluated output: ERROR: LoadError: UndefVarError: @varname_interface not defined in expression starting at none:1 Expected output: @f (macro with 1 method) diff = Warning: Diff output requires color. @f (macro with 1 method)ERROR: LoadError: UndefVarError: @varname_interface not defined in expression starting at none:1
Documentation: src/misc/VarNames.jl#L257
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:257-275 ```jldoctest julia> f(a, s::Symbol) = a, s f (generic function with 1 method) julia> @varname_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", "x") ("hello", :x) julia> @f "hello" x "hello" julia> x :x ``` Subexpression: f Evaluated output: f (generic function with 1 method) Expected output: f (generic function with 2 methods) diff = Warning: Diff output requires color. f (generic function with 2 methods)1 method)
Documentation: src/misc/VarNames.jl#L257
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:257-275 ```jldoctest julia> f(a, s::Symbol) = a, s f (generic function with 1 method) julia> @varname_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", "x") ("hello", :x) julia> @f "hello" x "hello" julia> x :x ``` Subexpression: f("hello", "x") Evaluated output: ERROR: MethodError: no method matching f(::String, ::String) Closest candidates are: f(::Any, !Matched::Symbol) at none:1 Stacktrace: [1] top-level scope @ none:1 Expected output: ("hello", :x) diff = Warning: Diff output requires color. ("hello", :x)ERROR: MethodError: no method matching f(::String, ::String) Closest candidates are: f(::Any, !Matched::Symbol) at none:1 Stacktrace: [1] top-level scope @ none:1
Documentation: src/misc/VarNames.jl#L257
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:257-275 ```jldoctest julia> f(a, s::Symbol) = a, s f (generic function with 1 method) julia> @varname_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", "x") ("hello", :x) julia> @f "hello" x "hello" julia> x :x ``` Subexpression: @f "hello" x Evaluated output: ERROR: LoadError: UndefVarError: @f not defined in expression starting at none:1 Expected output: "hello" diff = Warning: Diff output requires color. "hello"ERROR: LoadError: UndefVarError: @f not defined in expression starting at none:1
Documentation: src/misc/VarNames.jl#L257
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:257-275 ```jldoctest julia> f(a, s::Symbol) = a, s f (generic function with 1 method) julia> @varname_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", "x") ("hello", :x) julia> @f "hello" x "hello" julia> x :x ``` Subexpression: x Evaluated output: ERROR: UndefVarError: x not defined Expected output: :x diff = Warning: Diff output requires color. :xERROR: UndefVarError: x not defined
Documentation: src/misc/VarNames.jl#L23
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:23-32 ```jldoctest julia> variable_names(:x, :y) [:x, :y] julia> variable_names(:x => (1, 2), :y => 2, :z) [Symbol("x[1,1]"), Symbol("x[1,2]"), Symbol("y[1]"), Symbol("y[2]"), :z] julia> variable_names(["x$i$j" for i in 0:2, j in 0:1], 'y') [:x00, :x10, :x20, :x01, :x11, :x21, :y] ``` Subexpression: variable_names(:x, :y) Evaluated output: ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1 Expected output: [:x, :y] diff = Warning: Diff output requires color. [:x, :y]ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1
Documentation: src/misc/VarNames.jl#L23
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:23-32 ```jldoctest julia> variable_names(:x, :y) [:x, :y] julia> variable_names(:x => (1, 2), :y => 2, :z) [Symbol("x[1,1]"), Symbol("x[1,2]"), Symbol("y[1]"), Symbol("y[2]"), :z] julia> variable_names(["x$i$j" for i in 0:2, j in 0:1], 'y') [:x00, :x10, :x20, :x01, :x11, :x21, :y] ``` Subexpression: variable_names(:x => (1, 2), :y => 2, :z) Evaluated output: ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1 Expected output: [Symbol("x[1,1]"), Symbol("x[1,2]"), Symbol("y[1]"), Symbol("y[2]"), :z] diff = Warning: Diff output requires color. [Symbol("x[1,1]"), Symbol("x[1,2]"), Symbol("y[1]"), Symbol("y[2]"), :z]ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1
Documentation: src/misc/VarNames.jl#L23
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:23-32 ```jldoctest julia> variable_names(:x, :y) [:x, :y] julia> variable_names(:x => (1, 2), :y => 2, :z) [Symbol("x[1,1]"), Symbol("x[1,2]"), Symbol("y[1]"), Symbol("y[2]"), :z] julia> variable_names(["x$i$j" for i in 0:2, j in 0:1], 'y') [:x00, :x10, :x20, :x01, :x11, :x21, :y] ``` Subexpression: variable_names(["x$i$j" for i in 0:2, j in 0:1], 'y') Evaluated output: ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1 Expected output: [:x00, :x10, :x20, :x01, :x11, :x21, :y] diff = Warning: Diff output requires color. [:x00, :x10, :x20, :x01, :x11, :x21, :y]ERROR: UndefVarError: variable_names not defined Stacktrace: [1] top-level scope @ none:1
Documentation: src/misc/VarNames.jl#L118
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:118-159 ```jldoctest julia> f(a, s::Vector{Symbol}) = a, String.(s) f (generic function with 1 method) julia> @varnames_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", :x, :y, :z) ("hello", "x", "y", "z") julia> f("hello", :x => (1, 2), :y => 2, :z) ("hello", ["x[1,1]" "x[1,2]"], ["y[1]", "y[2]"], "z") julia> f("projective", ["x$i$j" for i in 0:1, j in 0:1], [:y0, :y1], :z) ("projective", ["x00" "x01"; "x10" "x11"], ["y0", "y1"], "z") julia> f("fun inputs", 'a':'g', Symbol.('x':'z', [0 1]) ("fun inputs", ["a", "b", "c", "d", "e", "f", "g"], ["x0" "x1"; "y0" "y1"; "z0" "z1"]) julia> @f "hello" x[1, 2] y[2] z "hello" julia> x 1×2 Matrix{String}: "x[1,1]" "x[1,2]" julia> y 2-element Vector{String}: "y[1]" "y[2]" julia> z "z" julia> v = [1,4,1]; @f "variable dims" x[v...]; x 1×4×1 Array{String, 3}: [:, :, 1] = "y[1,1,1]" "y[1,2,1]" "y[1,3,1]" "y[1,4,1]" ``` Subexpression: @varnames_interface f(a, s) Evaluated output: ERROR: LoadError: UndefVarError: @varnames_interface not defined in expression starting at none:1 Expected output: @f (macro with 1 method) diff = Warning: Diff output requires color. @f (macro with 1 method)ERROR: LoadError: UndefVarError: @varnames_interface not defined in expression starting at none:1
Documentation: src/misc/VarNames.jl#L118
doctest failure in ~/work/AbstractAlgebra.jl/AbstractAlgebra.jl/src/misc/VarNames.jl:118-159 ```jldoctest julia> f(a, s::Vector{Symbol}) = a, String.(s) f (generic function with 1 method) julia> @varnames_interface f(a, s) @f (macro with 1 method) julia> f f (generic function with 2 methods) julia> f("hello", :x, :y, :z) ("hello", "x", "y", "z") julia> f("hello", :x => (1, 2), :y => 2, :z) ("hello", ["x[1,1]" "x[1,2]"], ["y[1]", "y[2]"], "z") julia> f("projective", ["x$i$j" for i in 0:1, j in 0:1], [:y0, :y1], :z) ("projective", ["x00" "x01"; "x10" "x11"], ["y0", "y1"], "z") julia> f("fun inputs", 'a':'g', Symbol.('x':'z', [0 1]) ("fun inputs", ["a", "b", "c", "d", "e", "f", "g"], ["x0" "x1"; "y0" "y1"; "z0" "z1"]) julia> @f "hello" x[1, 2] y[2] z "hello" julia> x 1×2 Matrix{String}: "x[1,1]" "x[1,2]" julia> y 2-element Vector{String}: "y[1]" "y[2]" julia> z "z" julia> v = [1,4,1]; @f "variable dims" x[v...]; x 1×4×1 Array{String, 3}: [:, :, 1] = "y[1,1,1]" "y[1,2,1]" "y[1,3,1]" "y[1,4,1]" ``` Subexpression: f Evaluated output: f (generic function with 1 method) Expected output: f (generic function with 2 methods) diff = Warning: Diff output requires color. f (generic function with 2 methods)1 method)
test (~1.9.0-0, ubuntu-latest)
Process completed with exit code 1.
test (1.8, ubuntu-latest)
Process completed with exit code 1.
test (nightly, ubuntu-latest)
Process completed with exit code 1.
test (1.8, macOS-latest)
Process completed with exit code 1.
test (1.8, windows-latest)
Process completed with exit code 1.