Skip to content

Commit

Permalink
fix ComplexTerm metadata test which was never tested
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Sep 3, 2023
1 parent 9c3a18a commit 60d26bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/complex.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Symbolics, Test
using SymbolicUtils: metadata
using Symbolics: unwrap

@variables a b::Real z::Complex (Z::Complex)[1:10]

Expand Down Expand Up @@ -31,6 +32,6 @@ end
@testset "metadata" begin
z1 = z+1.0
@test_nowarn substitute(z1, z=>1.0im)
@test metadata(z1) == z1.im.metadata
@test metadata(z1) == z1.re.metadata
@test metadata(z1) == unwrap(z1.im).metadata
@test metadata(z1) == unwrap(z1.re).metadata
end

0 comments on commit 60d26bb

Please sign in to comment.