mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-05 08:02:13 +00:00
Fix tests on Windows
This commit is contained in:
parent
a70f3f12c5
commit
c7d779fe88
@ -15,11 +15,14 @@
|
|||||||
|
|
||||||
package versioner
|
package versioner
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
func TestTaggedFilename(t *testing.T) {
|
func TestTaggedFilename(t *testing.T) {
|
||||||
cases := [][3]string{
|
cases := [][3]string{
|
||||||
{"foo/bar.baz", "tag", "foo/bar~tag.baz"},
|
{filepath.Join("foo", "bar.baz"), "tag", filepath.Join("foo", "bar~tag.baz")},
|
||||||
{"bar.baz", "tag", "bar~tag.baz"},
|
{"bar.baz", "tag", "bar~tag.baz"},
|
||||||
{"bar", "tag", "bar~tag"},
|
{"bar", "tag", "bar~tag"},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user