From 3ad1c5b331a9d018f5eaf8183c0a4de13074e0dd Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Mon, 5 Jun 2017 11:57:24 -0500 Subject: [PATCH] Fix broken test --- roaring/roaring_internal_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) - } } }