Skip to content

Commit 2156adf

Browse files
committed
Add assertion in testUnwrap in matlab_test
1 parent ba33c21 commit 2156adf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

control/tests/matlab_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,11 @@ def testOpers(self, siso):
582582
# siso.tf1 / siso.ss2
583583

584584
def testUnwrap(self):
585-
"""Call unwrap()"""
585+
# control.matlab.unwrap
586586
phase = np.array(range(1, 100)) / 10.
587587
wrapped = phase % (2 * np.pi)
588588
unwrapped = unwrap(wrapped)
589+
np.testing.assert_array_almost_equal(phase, unwrapped)
589590

590591
def testSISOssdata(self, siso):
591592
"""Call ssdata()

0 commit comments

Comments
 (0)