@@ -458,6 +458,21 @@ def test_append(self):
458458 store .append ('df' , df )
459459 tm .assert_frame_equal (store ['df' ], df )
460460
461+ # uints - test storage of uints
462+ uint_data = DataFrame ({'u08' : Series (np .random .random_integers (0 , high = 255 , size = 5 ), dtype = np .uint8 ),
463+ 'u16' : Series (np .random .random_integers (0 , high = 65535 , size = 5 ), dtype = np .uint16 ),
464+ 'u32' : Series (np .random .random_integers (0 , high = 2 ** 30 , size = 5 ), dtype = np .uint32 ),
465+ 'u64' : Series ([2 ** 58 , 2 ** 59 , 2 ** 60 , 2 ** 61 , 2 ** 62 ], dtype = np .uint64 )},
466+ index = np .arange (5 ))
467+ _maybe_remove (store , 'uints' )
468+ store .append ('uints' , uint_data )
469+ tm .assert_frame_equal (store ['uints' ], uint_data )
470+
471+ # uints - test storage of uints in indexable columns
472+ _maybe_remove (store , 'uints' )
473+ store .append ('uints' , uint_data , data_columns = ['u08' ,'u16' ,'u32' ]) # 64-bit indices not yet supported
474+ tm .assert_frame_equal (store ['uints' ], uint_data )
475+
461476 def test_append_some_nans (self ):
462477
463478 with ensure_clean (self .path ) as store :
0 commit comments