def test_y_negative(self): result = rectangle.y([[1.,2.],[-3.,-4.]]) np.testing.assert_almost_equal(result, 2., decimal=5)
def test_y(self): result = rectangle.y([[1.,2.],[3.,4.]]) np.testing.assert_almost_equal(result, 2., decimal=5)
def y(self): return rectangle.y(self._m)