package index import ( "testing" . "github.com/smartystreets/goconvey/convey" "log" "time" ) func TestBitmaps(t *testing.T) { log.Println("HELLO") Convey("function BitCount should equal method bm.Count()", t, func() { bm:= CreateRBBitmap() for i:=uint64(0); i true ", t, func() { bm1:= CreateRBBitmap() bm2:= CreateRBBitmap() SetBit(bm1,1) //SetBit(bm2,2) all:= AND_NOT(bm1,bm2) res :=BitCount(all) So(1, ShouldEqual, res) }) Convey("UNION even + odd equal 4096 ", t, func() { even:= CreateRBBitmap() for i:=uint64(0); i