Fix tests on Windows

This commit is contained in:
Audrius Butkevicius 2014-11-25 21:27:10 +00:00
parent a70f3f12c5
commit c7d779fe88

View File

@ -15,11 +15,14 @@
package versioner
import "testing"
import (
"path/filepath"
"testing"
)
func TestTaggedFilename(t *testing.T) {
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", "tag", "bar~tag"},