Skip to content

Commit 86a6bf4

Browse files
committed
update test
1 parent a141260 commit 86a6bf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
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])

0 commit comments

Comments
 (0)