def test_pprint_npfloat32():
 dat = np.array([1.0, 2.0], dtype=np.float32)
 t = Table([dat], names=['a'])
 t['a'].format = '5.2f'
 assert (str(t['a']) == '  a  \n-----\n 1.00\n 2.00')

def test_pprint_npfloat32 ( ) : dat = np . array ( [ 1.0 , 2.0 ] , dtype = np . float32 ) t = Table ( [ dat ] , names = [ 'a' ] ) t [ 'a' ] . format = '5.2f' assert ( str ( t [ 'a' ] ) == '  a  \n-----\n 1.00\n 2.00' )
test for #148 .