Skip to content

Commit

Permalink
test: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jul 22, 2024
1 parent 1ecc013 commit d165f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/StructuredExpression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import ..ExpressionModule:
get_operators,
get_variable_names,
Metadata,
copy_named_tuple,
_copy,
default_node_type,
node_type,
Expand Down
3 changes: 3 additions & 0 deletions test/test_expression_math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d165f6b

Please sign in to comment.