Fix #3115 - Fix environment variable quoting on Windows

This commit is contained in:
w0rp committed 2023-09-16 22:33:59 +01:00
1 parent ae1d051504
commit e412fa34ff
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
Execute(ale#Env should produce the correct syntax):
if has('win32')
AssertEqual 'set name=xxx && ', ale#Env('name', 'xxx')
AssertEqual 'set name="foo bar" && ', ale#Env('name', 'foo bar')
AssertEqual 'set "name=foo bar" && ', ale#Env('name', 'foo bar')
else
AssertEqual 'name=''xxx'' ', ale#Env('name', 'xxx')
AssertEqual 'name=''foo bar'' ', ale#Env('name', 'foo bar')