Skip to content

Commit

Permalink
adjust tests to account for changes to internals
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Feb 14, 2025
1 parent e69d2fc commit e600591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ControlSystemsBase/test/test_complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ s = tf("s");
@test tzeros(ss([-1.0-im 1-im; 2 0], [2; 0], [-1+1im -0.5-1.25im], 1)) [-1-2im, 2-im]

@test tzeros(ss((s-2.0-1.5im)^3/(s+1+im)/(s+2)^3)) fill(2.0 + 1.5im, 3) rtol=1e-4
@test tzeros(ss((s-2.0-1.5im)*(s-3.0)/(s+1+im)/(s+2)^2)) [3.0, 2.0 + 1.5im] rtol=1e-14
@test tzeros(ss((s-2.0-1.5im)*(s-3.0)/(s+1+im)/(s+2)^2)) [2.0 + 1.5im, 3.0] rtol=1e-14

end
4 changes: 2 additions & 2 deletions lib/ControlSystemsBase/test/test_conversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ A = randn(ComplexF64,3,3)

G = tf(1.0,[1,1])
H = zpk([0.0], [1.0], 1.0)
@inferred ControlSystemsBase.siso_tf_to_ss(Float64, G.matrix[1,1])
@inferred ControlSystemsBase.siso_tf_to_ss(Float64, H.matrix[1,1])
# @inferred ControlSystemsBase.siso_tf_to_ss(Float64, G.matrix[1,1])
# @inferred ControlSystemsBase.siso_tf_to_ss(Float64, H.matrix[1,1])

# Easy second order system
sys1 = ss([-1 0;1 1],[1;0],[1 1],0)
Expand Down

0 comments on commit e600591

Please sign in to comment.