#NEWLINE# @ tag ( 'important' ) #NEWLINE# def test_add( self ) : #NEWLINE# #INDENT# pyfunc = add_usecase #NEWLINE# samples = [ ( types . Tuple ( ( ) ) , ( ) ) , ( types . UniTuple ( types . int32 , 0 ) , ( ) ) , ( types . UniTuple ( types . int32 , 1 ) , ( 42 , ) ) , ( types . Tuple ( ( types . int64 , types . float32 ) ) , ( 3 , 4.5 ) ) ] #NEWLINE# for ( ( ta , a ) , ( tb , b ) ) in itertools . product ( samples , samples ) : #NEWLINE# #INDENT# cr = compile_isolated ( pyfunc , ( ta , tb ) ) #NEWLINE# expected = pyfunc ( a , b ) #NEWLINE# got = cr . entry_point ( a , b ) #NEWLINE# self . assertPreciseEqual ( got , expected , msg = ( ta , tb ) )