

def test_ls(self):
    top = self.top
    top.run()
    self.assertAlmostEqual(top.ls.x[0], 1, 5)
    self.assertAlmostEqual(top.ls.x[1], (- 2), 5)
    self.assertAlmostEqual(top.ls.x[2], (- 2), 5)
    self.assertAlmostEqual(top.ls.R[0], 0.0, 5)
    self.assertAlmostEqual(top.ls.R[1], 0.0, 5)
    self.assertAlmostEqual(top.ls.R[2], 0.0, 5)

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/components/test/test_linear_system.py LinearSystemTestCase.test_ls/original