#NEWLINE# def test_division( self , space ) : #NEWLINE# #INDENT# w_res = space . execute ( 'return 3 / 5' ) #NEWLINE# assert ( space . int_w ( w_res ) == 0 ) #NEWLINE# w_res = space . execute ( 'return 3 / 5.0' ) #NEWLINE# assert ( space . float_w ( w_res ) == 0.6 ) #NEWLINE# w_res = space . execute ( 'return 3 / (0.0 / 0.0)' ) #NEWLINE# assert math . isnan ( space . float_w ( space ) ) #NEWLINE# w_res = space . execute ( 'return 3 / (1.0 / 0.0)' ) #NEWLINE# assert ( space . float_w ( w_res ) == 0.0 ) #NEWLINE# w_res = space . execute ( 'return 3 / (1.0 / -0.0)' ) #NEWLINE# assert ( space . float_w ( w_res ) == ( - 0.0 ) )