aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/vim_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-03-22 15:14:51 +0100
committerJustin M. Keyes <justinkz@gmail.com>2023-03-22 17:46:01 +0100
commite51139f5c1d70bef1424f29e63eb527514e42865 (patch)
tree134cf61785edb963f67bb891da220dc3966cb3be /test/functional/lua/vim_spec.lua
parent8a70adbde03ee9931dc4e1b6f31bd8635eb3633b (diff)
downloadrneovim-e51139f5c1d70bef1424f29e63eb527514e42865.tar.gz
rneovim-e51139f5c1d70bef1424f29e63eb527514e42865.tar.bz2
rneovim-e51139f5c1d70bef1424f29e63eb527514e42865.zip
refactor(vim.gsplit): remove "keepsep"
string.gmatch() is superior, use that instead.
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r--test/functional/lua/vim_spec.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua
index 4cf38a1567..a0428ed933 100644
--- a/test/functional/lua/vim_spec.lua
+++ b/test/functional/lua/vim_spec.lua
@@ -329,14 +329,6 @@ describe('lua stdlib', function()
matches("Infinite loop detected", pcall_err(vim.split, t[1], t[2]))
end
- -- `keepsep`
- eq({ '', '.', '', '.', 'aa', '.', 'bb', '.', 'cc', '.', 'dd', '.', 'ee', '.', '', },
- vim.split('..aa.bb.cc.dd.ee.', '%.', {keepsep=true}))
- eq({ '..aa', '1', '.bb', '2', '', '2', '.cc.', '9', '', },
- vim.split('..aa1.bb22.cc.9', '%d', {keepsep=true}))
- eq({ '..aa', '1', '.bb', '22', '.cc.', '9', '', },
- vim.split('..aa1.bb22.cc.9', '%d+', {keepsep=true}))
-
-- Validates args.
eq(true, pcall(vim.split, 'string', 'string'))
matches('s: expected string, got number',
@@ -345,9 +337,6 @@ describe('lua stdlib', function()
pcall_err(vim.split, 'string', 1))
matches('opts: expected table, got number',
pcall_err(vim.split, 'string', 'string', 1))
- -- Not supported (yet).
- matches('keepsep%+trimempty not supported',
- pcall_err(vim.split, 'foo bar', ' ', {keepsep=true, trimempty=true}))
end)
it('vim.trim', function()