blob: f8a97cb8669cd505c7038ee40b64c22b5d764571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Before:
silent! cd /testplugin/test/util
let g:dir = getcwd()
After:
silent execute 'cd ' . fnameescape(g:dir)
unlet! g:dir
Execute(CdString should output the correct command string):
AssertEqual '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(''))
|