def test_read_weird():
 table = '\n  Col1  |  Col2 |\n  1.2       "hello"\n  2.4   sdf\'s worlds\n'
 reader = ascii.get_reader(Reader=ascii.FixedWidth)
 dat = reader.read(table)
 assert_equal(dat.colnames, ['Col1', 'Col2'])
 assert_almost_equal(dat[1][0], 2.4)
 assert_equal(dat[0][1], '"hel')
 assert_equal(dat[1][1], "df's wo")

def test_read_weird ( ) : table = '\n  Col1  |  Col2 |\n  1.2       "hello"\n  2.4   sdf\'s worlds\n' reader = ascii . get_reader ( Reader = ascii . FixedWidth ) dat = reader . read ( table ) assert_equal ( dat . colnames , [ 'Col1' , 'Col2' ] ) assert_almost_equal ( dat [ 1 ] [ 0 ] , 2.4 ) assert_equal ( dat [ 0 ] [ 1 ] , '"hel' ) assert_equal ( dat [ 1 ] [ 1 ] , "df's wo" )
weird input table with data values chopped by col extent .