Skip to content

Commit bb83116

Browse files
committed
Update variable_utils.jl
1 parent 5d8d71d commit bb83116

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/variable_utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using ModelingToolkit, Test
2+
using SymbolicUtils: <
23
@parameters α β δ
34
expr = (((1 / β - 1) + δ) / α) ^ (1 /- 1))
4-
ref = [β, δ, α]
5-
sol = Num.(ModelingToolkit.get_variables(expr))
5+
ref = sort([β, δ, α], lt = <ₑ)
6+
sol = sort(Num.(ModelingToolkit.get_variables(expr)), lt = <)
67
@test all(simplify, sol[i] == ref[i] for i in 1:3)
78

89
@parameters γ

0 commit comments

Comments
 (0)