diff options
author | Mike <4576770+mike325@users.noreply.github.com> | 2023-07-18 08:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 14:36:04 +0800 |
commit | e4da418ba8388e94bb186e3f9a2004ee1e96f1e5 (patch) | |
tree | 703fdc9f0f0d77beeaa64366076c992ae0071382 /test/functional/lua/fs_spec.lua | |
parent | 80cf0f3d29fa337d43ec417759cb061bd2798ea8 (diff) | |
download | rneovim-e4da418ba8388e94bb186e3f9a2004ee1e96f1e5.tar.gz rneovim-e4da418ba8388e94bb186e3f9a2004ee1e96f1e5.tar.bz2 rneovim-e4da418ba8388e94bb186e3f9a2004ee1e96f1e5.zip |
fix(fs.lua): normalize slash truncation (#23753)
Preserve last slash in windows' root drive directories
Diffstat (limited to 'test/functional/lua/fs_spec.lua')
-rw-r--r-- | test/functional/lua/fs_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua index c1091cff60..2c7b3ff324 100644 --- a/test/functional/lua/fs_spec.lua +++ b/test/functional/lua/fs_spec.lua @@ -301,5 +301,10 @@ describe('vim.fs', function() return vim.fs.normalize('$XDG_CONFIG_HOME/nvim') ]], xdg_config_home)) end) + if is_os('win') then + it('Last slash is not truncated from root drive', function() + eq('C:/', exec_lua [[ return vim.fs.normalize('C:/') ]]) + end) + end end) end) |