aboutsummaryrefslogtreecommitdiff
path: root/sketch_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-27 18:38:07 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-27 18:38:16 +0200
commit129a86b3a6780b7aee5a7469cc5adeaf2ea6c20f (patch)
treeab8423f6885c380b2bb4d807313428003d8d5e37 /sketch_test.go
parent78251f11c91b2504edfc02b760ef53bd352b856c (diff)
downloaddna-backup-129a86b3a6780b7aee5a7469cc5adeaf2ea6c20f.tar.gz
dna-backup-129a86b3a6780b7aee5a7469cc5adeaf2ea6c20f.zip
add findSimilarChunks method to test sketches
Still missing a real test...
Diffstat (limited to 'sketch_test.go')
-rw-r--r--sketch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sketch_test.go b/sketch_test.go
index ac4ab70..2f568e6 100644
--- a/sketch_test.go
+++ b/sketch_test.go
@@ -20,7 +20,7 @@ func TestSketchChunk(t *testing.T) {
if err != nil {
t.Error(err)
}
- expected := []uint64{429857165471867, 6595034117354675, 8697818304802825}
+ expected := Sketch{429857165471867, 6595034117354675, 8697818304802825}
if !cmp.Equal(sketch, expected) {
t.Errorf("Sketch does not match, expected: %d, actual: %d", expected, sketch)
}