Skip to content

Commit

Permalink
Stronger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jan 17, 2024
1 parent 2b70992 commit 5cf5a06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ end

@variables t y(t)
yy = Symbolics.variable(:y, T = Symbolics.FnType{Tuple{Any}, Real})
yyy = yy(Symbolics.value(t))
yyy = yy(t)
@test isequal(yyy, y)
@test yyy isa Num
@test y isa Num
yy = Symbolics.variable(:y, T = Symbolics.FnType{Tuple, Real})
yyy = yy(t)
@test !isequal(yyy, y)
@variables y(..)
@test isequal(yyy, y(t))

0 comments on commit 5cf5a06

Please sign in to comment.