Skip to content

Commit 9b635db

Browse files
fix a few more test cases
1 parent 42e5799 commit 9b635db

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

test/input_output_handling.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,12 @@ disturbed_input = ins[1]
362362
dist_integ,
363363
ins)
364364

365+
getter_sys = complete(augmented_sys)
365366
matrices, ssys = linearize(augmented_sys,
366367
[
367-
augmented_sys.u,
368-
augmented_sys.input.u[2],
369-
augmented_sys.d
368+
getter_sys.u,
369+
getter_sys.input.u[2],
370+
getter_sys.d
370371
], outs)
371372
@test matrices.A [A [1; 0]; zeros(1, 2) -0.001]
372373
@test matrices.B == I

test/structural_transformation/errors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ using Test
1414
end
1515
end
1616

17-
@named rc_model = ODESystem(rc_eqs, t; systems)
17+
@named rc_model = FOL()
1818
sys = structural_simplify(rc_model)
19-
@test_throws ModelingToolkit.RepeatedStructuralSimplificationError structural_simplify(sys)
19+
@test_throws ModelingToolkit.RepeatedStructuralSimplificationError structural_simplify(sys)

test/structural_transformation/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ end
1414
end
1515
@safetestset "Errors" begin
1616
include("errors.jl")
17-
end
17+
end

0 commit comments

Comments
 (0)