// Ensure bitmap can return the highest value.
Ensure bitmap can return the highest value.
// Ensure bitmap can return the highest value .
func TestBitmap_Max(t *testing.T) {
	bm := roaring.NewFileBitmap()
	for i := uint64(1000); i <= 100000; i++ {
		bm.Add(i)
		if v := bm.Max(); v != i {
			t.Fatalf("max: got=%d; want=%d", v, i)
		}
	}
}
func TestBitmap_Max ( t * testing . T ) { bm := roaring . NewFileBitmap ( ) for i := uint64 ( 1000 ) ; i <= 100000 ; i ++ { bm . Add ( i ) if v := bm . Max ( ) ; v != i { t . Fatalf ( " " , v , i ) } } }
Ensure bitmap can return the highest value.
Ensure bitmap can return the highest value .