bitmap container xor empty test

This commit is contained in:
Todd Gruben 2017-05-30 15:07:10 -05:00
parent b5bd8433cc
commit 1c468fb38e

View file

@ -173,6 +173,12 @@ func TestBitmap_Xor_ArrayBitmap(t *testing.T) {
if n := result.Count(); n > 0 {
t.Fatalf("unexpected n: %d", n)
}
empty := roaring.NewBitmap()
result = bm1.Xor(empty)
if n := result.Count(); n != 5000 {
t.Fatalf("unexpected n: %d", n)
}
}
func TestBitmap_Xor_BitmapBitmap(t *testing.T) {