aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/path_test.go
diff options
context:
space:
mode:
authorQtRoS <mrqtros@gmail.com>2018-09-25 00:01:39 +0300
committerAlex Brainman <alex.brainman@gmail.com>2018-09-29 04:26:02 +0000
commitd1f7470c217691dca4e339c77bf8c4175b8db168 (patch)
tree0b548fe28b2b4914981297c9c278881b833bb563 /src/path/filepath/path_test.go
parent1c95d9728aa5c8638db1bbabfb6ae764c4613c68 (diff)
downloadgo-d1f7470c217691dca4e339c77bf8c4175b8db168.tar.xz
path/filepath: fix Windows-specific Clean bug
Fixes #27791 Change-Id: I762fa663379086c24cb4ddc8233a2c0a82b1238e Reviewed-on: https://go-review.googlesource.com/137055 Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'src/path/filepath/path_test.go')
-rw-r--r--src/path/filepath/path_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go
index e1b5ad1d40..eddae4755b 100644
--- a/src/path/filepath/path_test.go
+++ b/src/path/filepath/path_test.go
@@ -92,6 +92,9 @@ var wincleantests = []PathTest{
{`//host/share/foo/../baz`, `\\host\share\baz`},
{`\\a\b\..\c`, `\\a\b\c`},
{`\\a\b`, `\\a\b`},
+ {`\\a\b\`, `\\a\b`},
+ {`\\folder\share\foo`, `\\folder\share\foo`},
+ {`\\folder\share\foo\`, `\\folder\share\foo`},
}
func TestClean(t *testing.T) {