mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 05:04:46 +08:00
Add some utility functions for changing directories for commands
This commit is contained in:
1 parent
6550cdfbd0
commit
2d1d6fb850
2 files changed
+22
No files matched your search
@@ -0,0 +1,9 @@
|
||||
Before:
|
||||
silent! cd /testplugin/test/util
|
||||
|
||||
Execute(CdString should output the correct command string):
|
||||
AssertEqual 'cd /foo\ bar/baz && ', ale#util#CdString('/foo bar/baz')
|
||||
|
||||
Execute(BufferCdString should output the correct command string):
|
||||
Assert match(ale#util#BufferCdString(bufnr('')), '^cd .*test/util && $') >= 0,
|
||||
\ 'String didn''t match regex: ' . ale#util#BufferCdString(bufnr(''))
|
||||
Reference in new issue
Block a user