File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ Describe System.Filepath
137
137
End
138
138
endif
139
139
It expand head ~ home path
140
- let path = '~/Hoge'
140
+ if s:is_windows
141
+ let path = '~\Hoge'
142
+ else
143
+ let path = '~/Hoge'
144
+ endif
141
145
let ret = FP.expand_home(path)
142
146
Assert Equals(ret, $HOME . FP.separator() . 'Hoge')
143
147
End
@@ -157,23 +161,23 @@ Describe System.Filepath
157
161
It [windows] completeslash not set home expand test
158
162
let backup_completeslash = &completeslash
159
163
set completeslash&
160
- let path = '~/ Hoge'
164
+ let path = '~\ Hoge'
161
165
let ret = FP.expand_home(path)
162
166
Assert Equals(ret, $HOME . FP.separator() . 'Hoge')
163
167
let &completeslash = backup_completeslash
164
168
End
165
169
It [windows] completeslash=slash home expand test
166
170
let backup_completeslash = &completeslash
167
171
set completeslash=slash
168
- let path = '~/ Hoge'
172
+ let path = '~\ Hoge'
169
173
let ret = FP.expand_home(path)
170
174
Assert Equals(ret, $HOME . FP.separator() . 'Hoge')
171
175
let &completeslash = backup_completeslash
172
176
End
173
177
It [windows] completeslash=backslash home expand test
174
178
let backup_completeslash = &completeslash
175
179
set completeslash=backslash
176
- let path = '~/ Hoge'
180
+ let path = '~\ Hoge'
177
181
let ret = FP.expand_home(path)
178
182
Assert Equals(ret, $HOME . FP.separator() . 'Hoge')
179
183
let &completeslash = backup_completeslash
You can’t perform that action at this time.
0 commit comments