// Ensure bitmap can return the number of intersecting bits in two arrays.
Ensure bitmap can return the number of intersecting bits in two arrays.
// Ensure bitmap can return the number of intersecting bits in two arrays .
func TestBitmap_IntersectionCount_ArrayArray(t *testing.T) {
	bm0 := roaring.NewFileBitmap(0, 1000001, 1000002, 1000003)
	bm1 := roaring.NewFileBitmap(0, 50000, 999998, 999999, 1000000, 1000001, 1000002)
	if n := bm0.IntersectionCount(bm1); n != 3 {
		t.Fatalf("unexpected n: %d", n)
	} else if n := bm1.IntersectionCount(bm0); n != 3 {
		t.Fatalf("unexpected n (reverse): %d", n)
	}
}
func TestBitmap_IntersectionCount_ArrayArray ( t * testing . T ) { bm0 := roaring . NewFileBitmap ( 0 , 1000001 , 1000002 , 1000003 ) bm1 := roaring . NewFileBitmap ( 0 , 50000 , 999998 , 999999 , 1000000 , 1000001 , 1000002 ) if n := bm0 . IntersectionCount ( bm1 ) ; n != 3 { t . Fatalf ( " " , n ) } else if n := bm1 . IntersectionCount ( bm0 ) ; n != 3 { t . Fatalf ( " " , n ) } }
Ensure bitmap can return the number of intersecting bits in two arrays.
Ensure bitmap can return the number of intersecting bits in two arrays .