#NEWLINE# def test_floats( self ) : #NEWLINE# #INDENT# arr = np . array ( [ 1.0 , 2.0 , 3.0 , np . float64 ( 4 ) , np . float32 ( 5 ) ] , dtype = 'O' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'floating' ) #NEWLINE# arr = np . array ( [ 1 , 2 , 3 , np . float64 ( 4 ) , np . float32 ( 5 ) , 'foo' ] , dtype = 'O' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'mixed-integer' ) #NEWLINE# arr = np . array ( [ 1 , 2 , 3 , 4 , 5 ] , dtype = 'f4' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'floating' ) #NEWLINE# arr = np . array ( [ 1 , 2 , 3 , 4 , 5 ] , dtype = 'f8' ) #NEWLINE# result = lib . infer_dtype ( arr ) #NEWLINE# self . assertEqual ( result , 'floating' )