#NEWLINE# def test_definition( self ) : #NEWLINE# #INDENT# x = [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] , [ 7 , 8 , 9 ] ] #NEWLINE# y = fftn ( x ) #NEWLINE# assert_array_almost_equal ( y , direct_dftn ( x ) ) #NEWLINE# x = random ( ( 20 , 26 ) ) #NEWLINE# assert_array_almost_equal ( fftn ( x ) , direct_dftn ( x ) ) #NEWLINE# x = random ( ( 5 , 4 , 3 , 20 ) ) #NEWLINE# assert_array_almost_equal ( fftn ( x ) , direct_dftn ( x ) )