mixed row test

This commit is contained in:
Todd Gruben 2021-02-22 15:06:45 -06:00
parent d220426686
commit 081d86c04b

View file

@ -73,7 +73,7 @@ func (s *memAttrStore) BlockData(i uint64) (map[uint64]map[string]interface{}, e
}
func TestAPI_CombineForExistence(t *testing.T) {
bm := roaring.NewBitmap(pos(1, 1), pos(1, 2), pos(1, 65537), pos(1, 65538), pos(2, 1), pos(2, 2), pos(2, 65537), pos(2, 65538))
bm := roaring.NewBitmap(pos(1, 1), pos(1, 2), pos(1, 3), pos(1, 65537), pos(1, 65538), pos(2, 1), pos(2, 2), pos(2, 5), pos(2, 65537), pos(2, 65538))
buf := new(bytes.Buffer)
_, err := bm.WriteTo(buf)
panicOn(err)
@ -85,7 +85,7 @@ func TestAPI_CombineForExistence(t *testing.T) {
bm2 := roaring.NewBitmap()
_, _, err = bm2.ImportRoaringBits(results, false, false, 1<<shardVsContainerExponent)
panicOn(err)
expected := []uint64{1, 2, 65537, 65538}
expected := []uint64{1, 2, 3, 5, 65537, 65538}
got := bm2.Slice()
if !reflect.DeepEqual(got, expected) {
t.Fatalf("expected:%v got:%v", expected, got)