aboutsummaryrefslogtreecommitdiff
path: root/sketch
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-13 12:14:44 +0200
committerNicolas Peugnet <n.peugnet@free.fr>2021-09-13 13:27:57 +0200
commit56c88382cc8eed0814554c85fe7bf3415a155585 (patch)
treec47d2b5aeaead48dc884b2064b76d85e10480dc7 /sketch
parent888cb69f0a33c138ea4ac2212e799ba7cb9ae22a (diff)
downloaddna-backup-56c88382cc8eed0814554c85fe7bf3415a155585.tar.gz
dna-backup-56c88382cc8eed0814554c85fe7bf3415a155585.zip
fix for windows, use filepath instead of path
Diffstat (limited to 'sketch')
-rw-r--r--sketch/sketch_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sketch/sketch_test.go b/sketch/sketch_test.go
index df35514..851320c 100644
--- a/sketch/sketch_test.go
+++ b/sketch/sketch_test.go
@@ -2,7 +2,7 @@ package sketch
import (
"os"
- "path"
+ "path/filepath"
"reflect"
"testing"
@@ -18,7 +18,7 @@ func TestSketchChunk(t *testing.T) {
t.Fatal(err)
}
- c0, err := os.Open(path.Join(dataDir, "000000000000000"))
+ c0, err := os.Open(filepath.Join(dataDir, "000000000000000"))
if err != nil {
t.Fatal(err)
}
@@ -31,7 +31,7 @@ func TestSketchChunk(t *testing.T) {
t.Errorf("Sketch does not match, expected: %d, actual: %d", expected, sketch)
}
- c14, err := os.Open(path.Join(dataDir, "000000000000014"))
+ c14, err := os.Open(filepath.Join(dataDir, "000000000000014"))
sketch, err = SketchChunk(c14, pol, 8<<10, 32, 3, 4)
if err != nil {
t.Error(err)