diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-09-09 04:00:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 04:00:35 -0700 |
commit | f0334c2c711ab6d2cd123f7506497c1311b0b926 (patch) | |
tree | 96a58f869698b9e80662f0793fdcc72a32293d64 /test/functional/testnvim.lua | |
parent | 8a2aec99748229ad9d1e12c1cbc0768d063e8eed (diff) | |
parent | c8e3618e0e68485c92bba3790a06d472d9b62697 (diff) | |
download | rneovim-f0334c2c711ab6d2cd123f7506497c1311b0b926.tar.gz rneovim-f0334c2c711ab6d2cd123f7506497c1311b0b926.tar.bz2 rneovim-f0334c2c711ab6d2cd123f7506497c1311b0b926.zip |
Merge #30312 from justinmk/testslashes
Diffstat (limited to 'test/functional/testnvim.lua')
-rw-r--r-- | test/functional/testnvim.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua index d74e8055ef..8c8b239cd8 100644 --- a/test/functional/testnvim.lua +++ b/test/functional/testnvim.lua @@ -902,26 +902,6 @@ function M.missing_provider(provider) assert(false, 'Unknown provider: ' .. provider) end ---- @param obj string|table ---- @return any -function M.alter_slashes(obj) - if not is_os('win') then - return obj - end - if type(obj) == 'string' then - local ret = obj:gsub('/', '\\') - return ret - elseif type(obj) == 'table' then - --- @cast obj table<any,any> - local ret = {} --- @type table<any,any> - for k, v in pairs(obj) do - ret[k] = M.alter_slashes(v) - end - return ret - end - assert(false, 'expected string or table of strings, got ' .. type(obj)) -end - local load_factor = 1 if t.is_ci() then -- Compute load factor only once (but outside of any tests). |