#NEWLINE# def test_definition( self ) : #NEWLINE# #INDENT# x = np . array ( [ 1 , 2 , 3 , ( 4 + 1j ) , 1 , 2 , 3 , ( 4 + 2j ) ] , dtype = self . cdt ) #NEWLINE# y = fft ( x ) #NEWLINE# assert_equal ( y . dtype , self . cdt ) #NEWLINE# y1 = direct_dft ( x ) #NEWLINE# assert_array_almost_equal ( y , y1 ) #NEWLINE# x = np . array ( [ 1 , 2 , 3 , ( 4 + 0j ) , 5 ] , dtype = self . cdt ) #NEWLINE# assert_array_almost_equal ( fft ( x ) , direct_dft ( y1 ) )