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