Skip to content

Commit 682c891

Browse files
committed
Update more tests
1 parent 67db801 commit 682c891

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

test/clock.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ci, varmap = infer_clocks(sys)
6767
eqmap = ci.eq_domain
6868
tss, inputs = ModelingToolkit.split_system(deepcopy(ci))
6969
sss, = SystemStructures._structural_simplify!(deepcopy(tss[1]), (inputs[1], ()))
70-
@test equations(sss) == [D(x) ~ u - y]
70+
@test equations(sss) == [D(x) ~ u - x]
7171
sss, = SystemStructures._structural_simplify!(deepcopy(tss[2]), (inputs[2], ()))
7272
@test isempty(equations(sss))
7373
@test observed(sss) == [yd ~ Sample(t, dt)(y); r ~ 1.0; ud ~ kp * (r - yd)]

test/reduction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ ss = structural_simplify(sys)
294294
@test isempty(equations(ss))
295295
@test sort(string.(observed(ss))) == ["x(t) ~ 0.0"
296296
"xˍt(t) ~ 0.0"
297-
"y(t) ~ xˍt(t)"]
297+
"y(t) ~ xˍt(t) - x(t)"]
298298

299299
eqs = [D(D(x)) ~ -x]
300300
@named sys = ODESystem(eqs, t, [x], [])

test/structural_transformation/tearing.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ eqs = [
138138
0 ~ x + z,
139139
]
140140
@named nlsys = NonlinearSystem(eqs, [x, y, z], [])
141-
let (mm, _, _) = ModelingToolkit.aag_bareiss(nlsys)
142-
@test mm == [-1 1 0;
143-
0 -1 -1;
144-
0 0 0]
145-
end
146141

147142
newsys = tearing(nlsys)
148143
@test length(equations(newsys)) <= 1

0 commit comments

Comments
 (0)