#NEWLINE# def _test_compare( self , pyfunc ) : #NEWLINE# #INDENT# def eq( pyfunc , cfunc , args ) : #NEWLINE# #INDENT# self . assertIs ( cfunc ( * args ) , pyfunc ( * args ) , ( 'mismatch for arguments %s' % ( args , ) ) ) #NEWLINE# #UNINDENT# cfunc = jit ( nopython = True ) ( pyfunc ) #NEWLINE# for ( a , b ) in [ ( ( 4 , 5 ) , ( 4 , 5 ) ) , ( ( 4 , 5 ) , ( 4 , 6 ) ) , ( ( 4 , 6 ) , ( 4 , 5 ) ) , ( ( 4 , 5 ) , ( 5 , 4 ) ) ] : #NEWLINE# #INDENT# eq ( pyfunc , cfunc , ( Rect ( * a ) , Rect ( * b ) ) ) #NEWLINE# #UNINDENT# for ( a , b ) in [ ( ( 4 , 5 ) , ( 4 , 5 , 6 ) ) , ( ( 4 , 5 ) , ( 4 , 4 , 6 ) ) , ( ( 4 , 5 ) , ( 4 , 6 , 7 ) ) ] : #NEWLINE# #INDENT# eq ( pyfunc , cfunc , ( Rect ( * self ) , Point ( * b ) ) )