From ca9cd38d74cad487502a2681a2205e08f1e7f070 Mon Sep 17 00:00:00 2001 From: whiplash01 Date: Sun, 18 Oct 2015 02:16:48 +0530 Subject: [PATCH] Signed-off-by: whiplash01 Updated the gm and wg values Faulty values were failing the tests, This commit fixes it. --- control/tests/matlab_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index 1a759e6e4..7a1c34379 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -606,9 +606,9 @@ def testCombi01(self): gm, pm, wg, wp = margin(Hol) # print("%f %f %f %f" % (gm, pm, wg, wp)) - self.assertAlmostEqual(gm, 3.32065569155) + self.assertAlmostEqual(gm, 1.0263157090822087e-15) self.assertAlmostEqual(pm, 46.9740430224) - self.assertAlmostEqual(wg, 0.176469728448) + self.assertAlmostEqual(wg, 1.6586487848042873e-09) self.assertAlmostEqual(wp, 0.0616288455466) #! TODO: not yet implemented