Skip to content

Commit

Permalink
correct ToSlash test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Aug 16, 2020
1 parent a205820 commit d2ad31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abspath_test.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit d2ad31a

Please sign in to comment.