예제 #1
0
 def testNumpyCorrelate(self):
     npsy = NumpySciPy()
     array = [[]]
     actual = npsy.numpyCorrelate(array)
     expected = None
     self.assertEqual(expected,actual)
예제 #2
0
 def testNumpyCorrelate(self):
     npsy = NumpySciPy()
     array = [[1,2,3],[3,4,5]]
     actual = npsy.numpyCorrelate(array)
     expected = np.array([26])
     self.assertEqual(expected,actual)
예제 #3
0
 def testNumpyCorrelateEmptyArrayreturnsNone(self):
     npsy = NumpySciPy()
     array = []
     actual = npsy.numpyCorrelate(array)
     expected = None
     self.assertEqual(expected,actual)