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