diff options
author | Felix Lange <fjl@twurst.com> | 2015-08-06 22:18:32 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-08-06 23:18:59 +0800 |
commit | eae1191904fd739cdffdd2903509a44a35c4c2f2 (patch) | |
tree | f10fc9132fabdeada3c8a0f4e2558f3d20c096af /cmd/utils/customflags_test.go | |
parent | 78b101e15d4a92d9f0f1d9ca49e45d5699adb3d2 (diff) | |
download | go-tangerine-eae1191904fd739cdffdd2903509a44a35c4c2f2.tar.gz go-tangerine-eae1191904fd739cdffdd2903509a44a35c4c2f2.tar.zst go-tangerine-eae1191904fd739cdffdd2903509a44a35c4c2f2.zip |
cmd/utils: fix path expansion on windows
Diffstat (limited to 'cmd/utils/customflags_test.go')
-rw-r--r-- | cmd/utils/customflags_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/utils/customflags_test.go b/cmd/utils/customflags_test.go index 0fb0af63b..de39ca36a 100644 --- a/cmd/utils/customflags_test.go +++ b/cmd/utils/customflags_test.go @@ -23,18 +23,15 @@ import ( ) func TestPathExpansion(t *testing.T) { - user, _ := user.Current() - tests := map[string]string{ "/home/someuser/tmp": "/home/someuser/tmp", "~/tmp": user.HomeDir + "/tmp", + "~thisOtherUser/b/": "~thisOtherUser/b", "$DDDXXX/a/b": "/tmp/a/b", "/a/b/": "/a/b", } - os.Setenv("DDDXXX", "/tmp") - for test, expected := range tests { got := expandPath(test) if got != expected { |