// Ensure a bitmap can loop over a set of values.
Ensure a bitmap can loop over a set of values.
// Ensure a bitmap can loop over a set of values .
func TestBitmap_ForEach(t *testing.T) {
	var a []uint64
	roaring.NewFileBitmap(1, 2, 3).ForEach(func(v uint64) {
		a = append(a, v)
	})
	if !reflect.DeepEqual(a, []uint64{1, 2, 3}) {
		t.Fatalf("unexpected values: %+v", a)
	}
}
func TestBitmap_ForEach ( t * testing . T ) { var a [ ] uint64 roaring . NewFileBitmap ( 1 , 2 , 3 ) . ForEach ( func ( v uint64 ) { a = append ( a , v ) } ) if ! reflect . DeepEqual ( a , [ ] uint64 { 1 , 2 , 3 } ) { t . Fatalf ( " " , a ) } }
Ensure a bitmap can loop over a set of values.
Ensure a bitmap can loop over a set of values .