#NEWLINE# def test_floatresult( self ) : #NEWLINE# #INDENT# f = dll . _testfunc_f_bhilfd #NEWLINE# f . argtypes = [ c_byte , c_short , c_int , c_long , c_float , c_double ] #NEWLINE# f . restype = c_float #NEWLINE# result = f ( 1 , 2 , 3 , 4 , 5.0 , 6.0 ) #NEWLINE# self . assertEqual ( result , 21 ) #NEWLINE# self . assertEqual ( type ( result ) , float ) #NEWLINE# result = f ( ( - 1 ) , ( - 2 ) , ( - 3 ) , ( - 4 ) , ( - 5.0 ) , ( - 6.0 ) ) #NEWLINE# self . assertEqual ( result , ( - 21 ) ) #NEWLINE# self . assertEqual ( type ( result ) , float )