#NEWLINE# def test_copy_arrays( self ) : #NEWLINE# #INDENT# pyfunc = usecases . copy_arrays #NEWLINE# arraytype = types . Array ( types . int32 , 1 , 'A' ) #NEWLINE# cr = compile_isolated ( nda , ( arraytype , arraytype ) ) #NEWLINE# cfunc = cr . entry_point #NEWLINE# nda = ( 0 , 1 , 10 , 100 ) #NEWLINE# for nd in nda : #NEWLINE# #INDENT# a = np . arange ( nd , dtype = 'int32' ) #NEWLINE# b = np . empty_like ( a ) #NEWLINE# args = ( a , b ) #NEWLINE# cfunc ( * args ) #NEWLINE# self . assertTrue ( np . all ( ( a == b ) ) , args )