From c481eb2b44adf50b62de3b9e3355f64973967d52 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 31 Aug 2021 12:05:29 +0200 Subject: do not fill partial cunks with padding this way a partial chunk may have less superfeatures than a complete one --- sketch_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sketch_test.go') diff --git a/sketch_test.go b/sketch_test.go index 86a2c58..074bffd 100644 --- a/sketch_test.go +++ b/sketch_test.go @@ -24,6 +24,16 @@ func TestSketchChunk(t *testing.T) { t.Errorf("Sketch does not match, expected: %d, actual: %d", expected, sketch) } } + if i == 14 { + sketch, err := SketchChunk(c, 32, 3, 4) + if err != nil { + t.Error(err) + } + expected := Sketch{658454504014104} + if !reflect.DeepEqual(sketch, expected) { + t.Errorf("Sketch does not match, expected: %d, actual: %d", expected, sketch) + } + } i++ } } -- cgit v1.2.3