// Ensure a bitmap can return a slice of values within a range.
// TODO duplicate for all container types
Ensure a bitmap can return a slice of values within a range.
TODO duplicate for all container types
// Ensure a bitmap can return a slice of values within a range . // TODO duplicate for all container types
func TestBitmap_SliceRange(t *testing.T) {
	if a := roaring.NewFileBitmap(0, 1000001, 1000002, 1000003).SliceRange(1, 1000003); !reflect.DeepEqual(a, []uint64{1000001, 1000002}) {
		t.Fatalf("unexpected slice: %+v", a)
	}
}
func TestBitmap_SliceRange ( t * testing . T ) { if a := roaring . NewFileBitmap ( 0 , 1000001 , 1000002 , 1000003 ) . SliceRange ( 1 , 1000003 ) ; ! reflect . DeepEqual ( a , [ ] uint64 { 1000001 , 1000002 } ) { t . Fatalf ( " " , a ) } }
Ensure a bitmap can return a slice of values within a range.
Ensure a bitmap can return a slice of values within a range .