Skip to content

Commit 555cc22

Browse files
committed
add test for #663
1 parent eea6cbd commit 555cc22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/function_registration.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,9 @@ function run_test()
110110
@test fun([0.5], [u0], 0.) == [do_something_4(u0) * 2]
111111
end
112112
run_test()
113+
114+
using ModelingToolkit: arguments
115+
@variables a
116+
@register foo(x,y,z)
117+
@test 1 * foo(a,a,a) * Num(1) isa Num
118+
@test !any(x->x isa Num, arguments(value(1 * foo(a,a,a) * Num(1))))

0 commit comments

Comments
 (0)