From d2ad31a37e6a9d9f63233e80c76026725dad3773 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 16 Aug 2020 23:09:26 +0900 Subject: [PATCH] correct ToSlash test case --- abspath_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abspath_test.go b/abspath_test.go index 6bfac8e..a57778c 100644 --- a/abspath_test.go +++ b/abspath_test.go @@ -306,7 +306,7 @@ func TestSplit(t *testing.T) { func TestToSlash(t *testing.T) { a, _ := FromSlash(fixAbsPath("/foo/bar.poyo")) s := a.ToSlash() - expected := filepath.Clean(filepath.FromSlash(fixAbsPath("/foo/bar.poyo"))) + expected := fixAbsPath("/foo/bar.poyo") if s != expected { t.Errorf("Expected %s but actually %s", expected, s) }