diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-09-18 17:14:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 17:14:25 +0200 |
commit | 6cad86fffdb91d3997a707ff6adb0b5991587b3e (patch) | |
tree | b929329658316d6a8a7aead01f0b701c0e278fca /test/functional/api/vim_spec.lua | |
parent | 8ef2b56cac895c151345cf0ff0a97456c0a7fdd2 (diff) | |
parent | a860f7880fd5d5cef5299ff8d450ac037bee2300 (diff) | |
download | rneovim-6cad86fffdb91d3997a707ff6adb0b5991587b3e.tar.gz rneovim-6cad86fffdb91d3997a707ff6adb0b5991587b3e.tar.bz2 rneovim-6cad86fffdb91d3997a707ff6adb0b5991587b3e.zip |
Merge pull request #15632 from bfredl/rtptest
runtime: always use DIP_START and remove duplication of start packages in &rtp
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 83b256e935..ffef6a6066 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1591,7 +1591,10 @@ describe('API', function() eq({'a', '', 'b'}, meths.list_runtime_paths()) meths.set_option('runtimepath', ',a,b') eq({'', 'a', 'b'}, meths.list_runtime_paths()) + -- trailing , is ignored, use ,, if you really really want $CWD meths.set_option('runtimepath', 'a,b,') + eq({'a', 'b'}, meths.list_runtime_paths()) + meths.set_option('runtimepath', 'a,b,,') eq({'a', 'b', ''}, meths.list_runtime_paths()) end) it('truncates too long paths', function() @@ -2012,8 +2015,13 @@ describe('API', function() ok(endswith(val[1], p"autoload/remote/define.vim") or endswith(val[1], p"autoload/remote/host.vim")) - eq({}, meths.get_runtime_file("lua", true)) - eq({}, meths.get_runtime_file("lua/vim", true)) + val = meths.get_runtime_file("lua", true) + eq(1, #val) + ok(endswith(val[1], p"lua")) + + val = meths.get_runtime_file("lua/vim", true) + eq(1, #val) + ok(endswith(val[1], p"lua/vim")) end) it('can find directories', function() |