#NEWLINE# def test_random_even( self ) : #NEWLINE# #INDENT# for h in [ 0.1 , 0.5 , 1 , 5.5 , 10 ] : #NEWLINE# #INDENT# for n in [ 32 , 64 , 56 ] : #NEWLINE# #INDENT# f = random ( ( n , ) ) #NEWLINE# af = ( sum ( f , axis = 0 ) / n ) #NEWLINE# f = ( f - h ) #NEWLINE# assert_almost_equal ( sum ( f , axis = 0 ) , 0.0 ) #NEWLINE# assert_array_almost_equal ( direct_tilbert ( direct_itilbert ( f , h ) , h ) , f )