From b2092e4395ac5f8ae075193987112e8a3316e298 Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 9 Jul 2020 14:15:21 -0500 Subject: [PATCH] thaw frozen containers for runRunInPlace test --- roaring/roaring_helpers_test.go | 3 +-- roaring/roaring_internal_test.go | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/roaring/roaring_helpers_test.go b/roaring/roaring_helpers_test.go index 1fa3d82f9..073983a7f 100644 --- a/roaring/roaring_helpers_test.go +++ b/roaring/roaring_helpers_test.go @@ -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() } diff --git a/roaring/roaring_internal_test.go b/roaring/roaring_internal_test.go index 085b6e1d1..4cf0b48d6 100644 --- a/roaring/roaring_internal_test.go +++ b/roaring/roaring_internal_test.go @@ -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)