aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/path_test.go
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2015-11-11 10:21:49 +0900
committerRuss Cox <rsc@golang.org>2015-11-12 19:58:37 +0000
commit935faf3be200d6f469cccdbec27cee3741a97350 (patch)
treeeeb46fcc1e1d064da3b56118101cf8fd7b3089aa /src/path/filepath/path_test.go
parentb28eeea136ec106a012be8b4278cb06203328c08 (diff)
downloadgo-935faf3be200d6f469cccdbec27cee3741a97350.tar.xz
path/filepath: in Rel use case-insensitive comparison on Windows
Fixes #10802 Compare Volume name and each path elements using strings.EqualFold. Change-Id: Ibdefdb801d0326e53755bc9cc8c10eed998094e5 Reviewed-on: https://go-review.googlesource.com/16795 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/path/filepath/path_test.go')
-rw-r--r--src/path/filepath/path_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go
index 09e7be228a..057aa6a2c0 100644
--- a/src/path/filepath/path_test.go
+++ b/src/path/filepath/path_test.go
@@ -1033,6 +1033,7 @@ var winreltests = []RelTests{
{`C:a\b\c`, `C:a/b/d`, `..\d`},
{`C:\`, `D:\`, `err`},
{`C:`, `D:`, `err`},
+ {`C:\Projects`, `c:\projects\src`, `src`},
}
func TestRel(t *testing.T) {