Skip to content

Commit 60d26bb

Browse files
committed
fix ComplexTerm metadata test which was never tested
1 parent 9c3a18a commit 60d26bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/complex.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Symbolics, Test
22
using SymbolicUtils: metadata
3+
using Symbolics: unwrap
34

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

@@ -31,6 +32,6 @@ end
3132
@testset "metadata" begin
3233
z1 = z+1.0
3334
@test_nowarn substitute(z1, z=>1.0im)
34-
@test metadata(z1) == z1.im.metadata
35-
@test metadata(z1) == z1.re.metadata
35+
@test metadata(z1) == unwrap(z1.im).metadata
36+
@test metadata(z1) == unwrap(z1.re).metadata
3637
end

0 commit comments

Comments
 (0)