Skip to content

Commit 65bd58b

Browse files
committed
update test
1 parent a141260 commit 65bd58b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/ControlSystemsBase/test/test_analysis.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@ P = ssrand(2,3,2)
357357
C = ssrand(3,2,2)
358358

359359
gof = gangoffour(P,C)
360-
@test gof[1] == sensitivity(P,C)
361-
@test gof[2] == G_PS(P,C)
362-
@test gof[3] == G_CS(P,C)
363-
@test gof[4] == comp_sensitivity(P,C)
360+
@test linfnorm(gof[1] - sensitivity(P,C))[1] < 1e-10
361+
@test linfnorm(gof[2] - G_PS(P,C))[1] < 1e-10
362+
@test linfnorm(gof[3] - G_CS(P,C))[1] < 1e-10
363+
@test linfnorm(gof[4] - comp_sensitivity(P,C))[1] < 1e-10
364364
@test_nowarn gangoffourplot(P, C)
365365
@test_nowarn gangoffourplot([P, P], C)
366366
@test_nowarn gangoffourplot(P, [C, C])

lib/ControlSystemsBase/test/test_plots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ end
6161
# plot!(step(Gmimo[:, 1], 10), plotx=true) # Verify that this plots the same as the "from u(1)" series above
6262

6363
setPlotScale("log10")
64-
margingen()
64+
funcs[8]() # test marginlpot with log10 scale
6565
end

0 commit comments

Comments
 (0)