From c7d779fe88391d43ddda7381da919a9f782b8488 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 25 Nov 2014 21:27:10 +0000 Subject: [PATCH] Fix tests on Windows --- internal/versioner/versioner_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/versioner/versioner_test.go b/internal/versioner/versioner_test.go index ba2c3b434..a1bd8674a 100644 --- a/internal/versioner/versioner_test.go +++ b/internal/versioner/versioner_test.go @@ -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"},