From d165f6bdcf576cfd828a1a25edd71a39a6854ebd Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Mon, 22 Jul 2024 01:20:40 +0100 Subject: [PATCH] test: improve coverage --- src/StructuredExpression.jl | 1 - test/test_expression_math.jl | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StructuredExpression.jl b/src/StructuredExpression.jl index ca9ead41..df6f8a37 100644 --- a/src/StructuredExpression.jl +++ b/src/StructuredExpression.jl @@ -12,7 +12,6 @@ import ..ExpressionModule: get_operators, get_variable_names, Metadata, - copy_named_tuple, _copy, default_node_type, node_type, diff --git a/test/test_expression_math.jl b/test/test_expression_math.jl index d5f9969d..8a41b083 100644 --- a/test/test_expression_math.jl +++ b/test/test_expression_math.jl @@ -103,6 +103,9 @@ end @test typeof(ex2) <: Expression{typeof(z)} @test shower(ex2) == "((x + y) + [1.0, 2.0]) + [-4.0, 0.0]" + # Same on left side: + @test shower([-4.0, 0.0] + ex) == "[-4.0, 0.0] + ((x + y) + [1.0, 2.0])" + # Now, let's evaluate this: X = Matrix{Vector{Float64}}(undef, 2, 32) for i in eachindex(X)