コード例 #1
0
 def test_error1(self):
     a = np.ones((5,))
     try:
         size_check.reduction(a,1)
     except ValueError:
         pass
コード例 #2
0
 def test_3d_0(self):
     a = np.ones((5,6,7))
     actual = size_check.reduction(a,1)
     desired = size_check.dummy_array((5,7),1)
     assert_array_equal(actual.shape,desired.shape)
コード例 #3
0
ファイル: test_size_check.py プロジェクト: YautongNg/gengis
 def test_error0(self):
     a = np.ones((5, ))
     try:
         actual = size_check.reduction(a, -2)
     except ValueError:
         pass
コード例 #4
0
 def test_2d_0(self):
     a = np.ones((5,10))
     actual = size_check.reduction(a,0)
     desired = size_check.dummy_array((10,),1)
     assert_array_equal(actual.shape,desired.shape)
コード例 #5
0
ファイル: test_size_check.py プロジェクト: AlloysMila/scipy
 def test_error0(self):
     a = np.ones((5,))
     try:
         actual = size_check.reduction(a,-2)
     except ValueError:
         pass