Ejemplo n.º 1
0
 def test_x_negative(self):
     result = rectangle.x([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, 1., decimal=5)
Ejemplo n.º 2
0
 def test_x(self):
     result = rectangle.x([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 1., decimal=5)
Ejemplo n.º 3
0
 def test_x_negative(self):
     result = rectangle.x([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, 1., decimal=5)
Ejemplo n.º 4
0
 def x(self):
     return rectangle.x(self._m)
Ejemplo n.º 5
0
 def test_x(self):
     result = rectangle.x([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 1., decimal=5)