Skip to content

Commit

Permalink
bitmap container xor empty test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgruben committed May 30, 2017
1 parent b5bd843 commit 1c468fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roaring/roaring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c468fb

Please sign in to comment.