|
53 | 53 | @testset "Base methods" begin |
54 | 54 | @syms w::Complex z::Complex a::Real b::Real x |
55 | 55 |
|
56 | | - @test isequal(w + z, Add(0, Dict(w=>1, z=>1))) |
57 | | - @test isequal(z + a, Add(0, Dict(z=>1, a=>1))) |
58 | | - @test isequal(a + b, Add(0, Dict(a=>1, b=>1))) # TODO: make this Real |
59 | | - @test isequal(a + x, Add(0, Dict(a=>1, x=>1))) |
60 | | - @test isequal(a + z, Add(0, Dict(a=>1, z=>1))) |
| 56 | + @test isequal(w + z, Add(Number, 0, Dict(w=>1, z=>1))) |
| 57 | + @test isequal(z + a, Add(Number, 0, Dict(z=>1, a=>1))) |
| 58 | + @test isequal(a + b, Add(Real, 0, Dict(a=>1, b=>1))) |
| 59 | + @test isequal(a + x, Add(Number, 0, Dict(a=>1, x=>1))) |
| 60 | + @test isequal(a + z, Add(Number, 0, Dict(a=>1, z=>1))) |
61 | 61 |
|
62 | 62 | # promote_symtype of identity |
63 | 63 | @test isequal(Term(identity, [w]), Term{Complex}(identity, [w])) |
|
0 commit comments