Fix broken test

This commit is contained in:
Alan Bernstein 2017-06-05 11:57:24 -05:00 • committed by Matt Jaffee
parent a51f7d66bb
commit 3ad1c5b331

View file

@ -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)
}
}
}