thaw frozen containers for runRunInPlace test

This commit is contained in:
Travis 2020-07-09 14:15:21 -05:00
parent cf146ababb
commit b2092e4395
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E
2 changed files with 3 additions and 4 deletions

View file

@ -255,8 +255,7 @@ func doContainer(typ byte, data interface{}) *Container {
case containerArray:
return NewContainerArray(data.([]uint16)).Freeze()
case containerBitmap:
c := NewContainerBitmap(-1, data.([]uint64)).Freeze()
return c
return NewContainerBitmap(-1, data.([]uint64)).Freeze()
case containerRun:
return NewContainerRun(data.([]interval16)).Freeze()
}

View file

@ -4391,8 +4391,8 @@ func TestUnionRunRunInPlaceBitwiseCompare(t *testing.T) {
for _, a := range runs {
for _, b := range runs {
t.Run(a.name+"-"+b.name, func(t *testing.T) {
arun := doContainer(containerRun, a.run)
brun := doContainer(containerRun, b.run)
arun := doContainer(containerRun, a.run).Thaw()
brun := doContainer(containerRun, b.run).Thaw()
out1 := unionBitmapRunInPlace(arun.runToBitmap(), brun)
out2 := unionRunRunInPlace(arun, brun)