// Test Subrange Flip should not affect bits outside of Range
Test Subrange Flip should not affect bits outside of Range
// Test Subrange Flip should not affect bits outside of Range
func TestBitmap_Flip_Array(t *testing.T) {
	bm := roaring.NewFileBitmap(0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256, 512, 1024)
	results := bm.Flip(0, 4)
	if !reflect.DeepEqual(results.Slice(), []uint64{8, 16, 32, 64, 128, 256, 512, 1024}) {
		t.Fatalf("unexpected %v ", results.Slice())
	}
	results = results.Flip(0, 4)
	if !reflect.DeepEqual(results.Slice(), []uint64{0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256, 512, 1024}) {
		t.Fatalf("unexpected %v ", results.Slice())
	}
}
func TestBitmap_Flip_Array ( t * testing . T ) { bm := roaring . NewFileBitmap ( 0 , 1 , 2 , 3 , 4 , 8 , 16 , 32 , 64 , 128 , 256 , 512 , 1024 ) results := bm . Flip ( 0 , 4 ) if ! reflect . DeepEqual ( results . Slice ( ) , [ ] uint64 { 8 , 16 , 32 , 64 , 128 , 256 , 512 , 1024 } ) { t . Fatalf ( " " , results . Slice ( ) ) } results = results . Flip ( 0 , 4 ) if ! reflect . DeepEqual ( results . Slice ( ) , [ ] uint64 { 0 , 1 , 2 , 3 , 4 , 8 , 16 , 32 , 64 , 128 , 256 , 512 , 1024 } ) { t . Fatalf ( " " , results . Slice ( ) ) } }
Test Subrange Flip should not affect bits outside of Range
Test Subrange Flip should not affect bits outside of Range