diff --git a/roaring/roaring_internal_test.go b/roaring/roaring_internal_test.go index 2504c0b36..89c85e6cc 100644 --- a/roaring/roaring_internal_test.go +++ b/roaring/roaring_internal_test.go @@ -732,7 +732,7 @@ func TestBitmapSetRange(t *testing.T) { } func TestArrayToBitmap(t *testing.T) { - a := &container{ctype: ARRAY} + a := &container{} tests := []struct { array []uint32 exp []uint64 @@ -754,9 +754,6 @@ func TestArrayToBitmap(t *testing.T) { if !reflect.DeepEqual(a.bitmap, exp) { t.Fatalf("test #%v expected %v, but got %v", i, exp, a.bitmap) } - if a.ctype != BITMAP { - t.Fatalf("test #%v expected type %v but got %v", i, BITMAP, a.ctype) - } } }