Skip to content

Commit

Permalink
test: fix linearize test with new MTKStdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Oct 20, 2024
1 parent e05e767 commit a5d7a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/downstream/linearize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ lsys = ModelingToolkit.reorder_unknowns(lsys0, unknowns(ssys), desired_order)
lsyss, _ = ModelingToolkit.linearize_symbolic(pid, [reference.u, measurement.u],
[ctr_output.u])

@test substitute(
@test ModelingToolkit.fixpoint_sub(
lsyss.A, ModelingToolkit.defaults_and_guesses(pid)) == lsys.A
@test substitute(
@test ModelingToolkit.fixpoint_sub(
lsyss.B, ModelingToolkit.defaults_and_guesses(pid)) == lsys.B
@test substitute(
@test ModelingToolkit.fixpoint_sub(
lsyss.C, ModelingToolkit.defaults_and_guesses(pid)) == lsys.C
@test substitute(
@test ModelingToolkit.fixpoint_sub(
lsyss.D, ModelingToolkit.defaults_and_guesses(pid)) == lsys.D

# Test with the reverse desired unknown order as well to verify that similarity transform and reoreder_unknowns really works
Expand Down

0 comments on commit a5d7a48

Please sign in to comment.