示例#1
0
 def test_transform_transpose(self):
     nptest.assert_array_equal(
         self.A.T,
         core.transform(self.A, np.transpose)
     )
示例#2
0
def test_transform(A, fxn):
    result = core.transform(A, fxn)
    expected = fxn(A)
    nptest.assert_array_equal(result, expected)
示例#3
0
 def test_transform_flip(self):
     nptest.assert_array_equal(
         self.known_flipped_A_points,
         core.transform(self.A, np.fliplr)
     )