mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
thaw frozen containers for runRunInPlace test
This commit is contained in:
parent
cf146ababb
commit
b2092e4395
2 changed files with 3 additions and 4 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue