Skip to content

Commit cdb3418

Browse files
baggepinnenclaude
andcommitted
Update DelayLti/HammersteinWiener print tests for new D format
Same trailing-blank-line drop as the existing StateSpace print tests — these composite types embed the StateSpace show output. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ef893cd commit cdb3418

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ControlSystemsBase/test/test_delayed_systems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using ControlSystemsBase
1414
@test_throws ErrorException delay(1, 0.3)
1515
@test delay(1, 1) == ss(zeros(1,1), ones(1,1), ones(1,1), zeros(1,1), 1)
1616

17-
@test sprint(show, ss(1,1,1,1)*delay(1.0)) == "DelayLtiSystem{Float64, Float64}\n\nP: StateSpace{Continuous, Float64}\nA = \n 1.0\nB = \n 0.0 1.0\nC = \n 1.0\n 0.0\nD = \n 0.0 1.0\n 1.0 0.0\n\nContinuous-time state-space model\n\nDelays: [1.0]"
17+
@test sprint(show, ss(1,1,1,1)*delay(1.0)) == "DelayLtiSystem{Float64, Float64}\n\nP: StateSpace{Continuous, Float64}\nA = \n 1.0\nB = \n 0.0 1.0\nC = \n 1.0\n 0.0\nD = \n 0.0 1.0\n 1.0 0.0\nContinuous-time state-space model\n\nDelays: [1.0]"
1818

1919
# Extremely basic tests
2020
@test freqresp(delay(1), ω) reshape(exp.(-im*ω), 1, 1, length(ω)) rtol=1e-15

lib/ControlSystemsBase/test/test_hammerstein_wiener.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using Test
1414
@test typeof(promote(nonlinearity(abs2), ss(1))[1]) == HammersteinWienerSystem{Float64}
1515

1616
@test sprint(show, ss(1, 1, 1, 1) * nonlinearity(abs2)) ==
17-
"HammersteinWienerSystem{Float64}\n\nP: StateSpace{Continuous, Float64}\nA = \n 1.0\nB = \n 0.0 1.0\nC = \n 1.0\n 0.0\nD = \n 0.0 1.0\n 1.0 0.0\n\nContinuous-time state-space model\n\nNonlinearities: Function[abs2]"
17+
"HammersteinWienerSystem{Float64}\n\nP: StateSpace{Continuous, Float64}\nA = \n 1.0\nB = \n 0.0 1.0\nC = \n 1.0\n 0.0\nD = \n 0.0 1.0\n 1.0 0.0\nContinuous-time state-space model\n\nNonlinearities: Function[abs2]"
1818

1919

2020
P1 = HammersteinWienerSystem(ss(-1.0, 1, 1, 0))

0 commit comments

Comments
 (0)