summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-09 18:03:34 +0100
committerw0rp <devw0rp@gmail.com>2017-09-09 18:03:34 +0100
commitf238e15f10600ab6350542b81693522ca87705e8 (patch)
tree9ab6b4c14bc63105f4a8406b84346d807fa95400 /test/util
parent574cb1159416954a497dfb3954bb91fd838ab4eb (diff)
downloadale-f238e15f10600ab6350542b81693522ca87705e8.zip
Fix more random Windows test issues
Diffstat (limited to 'test/util')
-rw-r--r--test/util/test_cd_string_commands.vader7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/util/test_cd_string_commands.vader b/test/util/test_cd_string_commands.vader
index f8a97cb8..5f0e92fd 100644
--- a/test/util/test_cd_string_commands.vader
+++ b/test/util/test_cd_string_commands.vader
@@ -7,9 +7,12 @@ After:
unlet! g:dir
Execute(CdString should output the correct command string):
- AssertEqual 'cd ''/foo bar/baz'' && ', ale#path#CdString('/foo bar/baz')
+ " We will check that escaping is done correctly for each platform.
+ AssertEqual
+ \ has('unix') ? 'cd ''/foo bar/baz'' && ' : 'cd "/foo bar/baz" && ',
+ \ ale#path#CdString('/foo bar/baz')
Execute(BufferCdString should output the correct command string):
call ale#test#SetFilename('foo.txt')
- AssertEqual 'cd ' . shellescape(g:dir) . ' && ', ale#path#BufferCdString(bufnr(''))
+ AssertEqual 'cd ' . ale#Escape(g:dir) . ' && ', ale#path#BufferCdString(bufnr(''))