mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
mixed row test
This commit is contained in:
parent
d220426686
commit
081d86c04b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue