Skip to content

Commit

Permalink
fix with cmp.Equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Keoni Gandall committed Sep 16, 2023
1 parent f80b317 commit 0edfd1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bio/slow5/slow5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"os"
"strings"
"testing"

"github.com/google/go-cmp/cmp"
)

const maxLineSize = 2 * 32 * 1024
Expand Down Expand Up @@ -247,10 +249,8 @@ func TestSvb(t *testing.T) {
rawSignal := read.RawSignal
mask, data := SvbCompressRawSignal(rawSignal)
rawSignalDecompressed := SvbDecompressRawSignal(len(rawSignal), mask, data)
for idx := range rawSignal {
if rawSignal[idx] != rawSignalDecompressed[idx] {
t.Errorf("Read signal at readNum %d idx %d didn't match decompressed signal %d", readNum, rawSignal[idx], rawSignalDecompressed[idx])
}
if !cmp.Equal(rawSignal, rawSignalDecompressed) {
t.Errorf("Read signal at readNum %d (%v) didn't match decompressed signal %v", readNum, rawSignal, rawSignalDecompressed)
}
}
}

0 comments on commit 0edfd1c

Please sign in to comment.