Skip to content
Prev Previous commit
Next Next commit
add failing test case from python-control issue #367
  • Loading branch information
repagh committed May 10, 2020
commit ec69a7ae24a0aa72f3ffa7435b324ae0c6d3a02e
10 changes: 10 additions & 0 deletions slycot/tests/test_sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ def test_sb10fd():
assert_allclose(rcond, (1.0, 1.0, 0.011241, 0.80492e-3), rtol=1e-4)


def test_sb10fd_2():
""" fails, from python-control issue #367"""
A = array([[-1, 0, 0], [0, -12, -5], [0, 4, 0]])
B = array([[2, 0], [0, 0.5], [0, 0]])
C = array([[-0.5, 0, -0.5], [0, 0, 0], [-0.5, 0, -0.5]])
D = array([[0, 0], [0, 1], [0, 0]], dtype=float)
assert_raises(ValueError, synthesis.sb10fd,
3, 2, 3, 1, 1, 1000, A, B, C, D)


@pytest.mark.parametrize(
'fun, exception_class, erange, checkvars',
((synthesis.sb01bd, SlycotArithmeticError, 2, {}),
Expand Down