diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-04-20 14:16:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-20 14:16:41 -0400 |
| commit | 4ceca862fceb021049144a9aed05c60ae39b7aba (patch) | |
| tree | b7b1f1e421aeeaa2d30a348745c17f9f9b69b8d7 /test/functional/vimscript/lang_spec.lua | |
| parent | faa7c15b5a711435ed9d90f7fbf2a2ff8f1255c7 (diff) | |
| download | rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.gz rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.bz2 rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.zip | |
refactor(test): drop deprecated exc_exec #39242
Diffstat (limited to 'test/functional/vimscript/lang_spec.lua')
| -rw-r--r-- | test/functional/vimscript/lang_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/vimscript/lang_spec.lua b/test/functional/vimscript/lang_spec.lua index 923c8c215d..183a525180 100644 --- a/test/functional/vimscript/lang_spec.lua +++ b/test/functional/vimscript/lang_spec.lua @@ -2,13 +2,13 @@ local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eval, eq = n.clear, n.eval, t.eq -local exc_exec, source = n.exc_exec, n.source +local source = n.source describe('vimscript', function() before_each(clear) it('parses `<SID>` with turkish locale', function() - if exc_exec('lang ctype tr_TR.UTF-8') ~= 0 then + if not pcall(n.command, 'lang ctype tr_TR.UTF-8') then pending('Locale tr_TR.UTF-8 not supported') return end @@ -23,7 +23,7 @@ describe('vimscript', function() end) it('str2float is not affected by locale', function() - if exc_exec('lang ctype sv_SE.UTF-8') ~= 0 then + if not pcall(n.command, 'lang ctype sv_SE.UTF-8') then pending('Locale sv_SE.UTF-8 not supported') return end |