]> git.madduck.net Git - etc/vim.git/blob - test/util/test_cd_string_commands.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / util / test_cd_string_commands.vader
1 Before:
2   silent! cd /testplugin/test/util
3   let g:dir = getcwd()
4
5 After:
6   silent execute 'cd ' . fnameescape(g:dir)
7   unlet! g:dir
8
9 Execute(CdString should output the correct command string):
10   " We will check that escaping is done correctly for each platform.
11   AssertEqual
12   \ has('unix') ? 'cd ''/foo bar/baz'' && ' : 'cd /d "/foo bar/baz" && ',
13   \ ale#command#CdString('/foo bar/baz')
14
15 Execute(CdString handle substitution and formatting):
16   call ale#test#SetFilename('foo.txt')
17
18   AssertEqual
19   \ has('unix') ? 'cd %s:h && ' : 'cd /d %s:h && ',
20   \ ale#command#CdString('%s:h')