From c377177108d3ee60b12f1c5c291672cd03cfaa20 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Fri, 5 Sep 2014 23:01:34 +0100 Subject: [PATCH] Fix tests on Windows --- ignore/ignore_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ignore/ignore_test.go b/ignore/ignore_test.go index 99a07432..4900fb2d 100644 --- a/ignore/ignore_test.go +++ b/ignore/ignore_test.go @@ -73,13 +73,13 @@ func TestExcludes(t *testing.T) { {"ign2", true}, {"ibla2", true}, {"iex2", false}, - {"ign1/ign", true}, - {"ign1/ex", false}, - {"ign1/iex2", false}, - {"iex2/ign", false}, - {"foo/bar/ign1", true}, - {"foo/bar/ign2", true}, - {"foo/bar/iex2", false}, + {filepath.Join("ign1", "ign"), true}, + {filepath.Join("ign1", "ex"), false}, + {filepath.Join("ign1", "iex2"), false}, + {filepath.Join("iex2", "ign"), false}, + {filepath.Join("foo", "bar", "ign1"), true}, + {filepath.Join("foo", "bar", "ign2"), true}, + {filepath.Join("foo", "bar", "iex2"), false}, } for _, tc := range tests {