Skip to content

Commit 22908fe

Browse files
committed
add test for Real symbols
1 parent 186290b commit 22908fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/interface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using SymbolicUtils, Test
2-
using SymbolicUtils: Term, Variable, to_symbolic, istree, operation, arguments
2+
using SymbolicUtils: Term, Variable, to_symbolic, istree, operation, arguments, symtype
33

44
SymbolicUtils.istree(ex::Expr) = ex.head == :call
55
SymbolicUtils.operation(ex::Expr) = ex.args[1]
@@ -25,6 +25,6 @@ to_expr(x) = x
2525

2626
@test to_expr(simplify(ex)) == Expr(:call, +, -1, :x)
2727

28-
SymbolicUtils.symtype(::Symbol) = Number
29-
28+
SymbolicUtils.symtype(::Symbol) = Real
3029

30+
@test symtype(simplify(ex)) == Real

0 commit comments

Comments
 (0)