Skip to content

Commit 5d8d71d

Browse files
committed
Reorder simplified exprs
1 parent d5f393c commit 5d8d71d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/direct.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ eqs = [σ*(y-x),
1313
x*y - β*z]
1414

1515

16-
simpexpr = Expr[:($(*)(σ, $(+)($(*)(-1, x), y))),
17-
:($(+)($(*)(x, $(+)($(*)(-1, z), ρ)), $(*)(-1, y))),
18-
:($(+)($(*)(x, y), $(*)(-1, z, β)))]
16+
simpexpr = [
17+
:($(*)(σ, $(+)(y, $(*)(-1, x))))
18+
:($(+)($(*)(x, $(+)(ρ, $(*)(-1, z))), $(*)(-1, y)))
19+
:($(+)($(*)(x, y), $(*)(-1, z, β)))
20+
]
1921

2022
for i in 1:3
2123
@test ModelingToolkit.toexpr.(eqs)[i] == simpexpr[i]

0 commit comments

Comments
 (0)