예제 #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)