diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-30 09:29:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-30 09:29:21 +0800 |
commit | 35239e977f53c25016b57729cada612aa53e11d4 (patch) | |
tree | 45e24edd39b7b80199d4a2b510add5c57f4148a8 /test/functional/ex_cmds/arg_spec.lua | |
parent | 19d63563e1cceabbf8603d0abb2e88fae5bd3626 (diff) | |
download | rneovim-35239e977f53c25016b57729cada612aa53e11d4.tar.gz rneovim-35239e977f53c25016b57729cada612aa53e11d4.tar.bz2 rneovim-35239e977f53c25016b57729cada612aa53e11d4.zip |
test: use matches(...) instead of ok(string.find(...)) (#28111)
Diffstat (limited to 'test/functional/ex_cmds/arg_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/arg_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/arg_spec.lua b/test/functional/ex_cmds/arg_spec.lua index 810b001ec0..45b2f50af1 100644 --- a/test/functional/ex_cmds/arg_spec.lua +++ b/test/functional/ex_cmds/arg_spec.lua @@ -1,6 +1,7 @@ local helpers = require('test.functional.helpers')(after_each) local eq, command, fn = helpers.eq, helpers.command, helpers.fn local ok = helpers.ok +local matches = helpers.matches local clear = helpers.clear describe(':argument', function() @@ -15,7 +16,7 @@ describe(':argument', function() helpers.feed([[<C-\><C-N>]]) local bufname_before = fn.bufname('%') local bufnr_before = fn.bufnr('%') - helpers.ok(nil ~= string.find(bufname_before, '^term://')) -- sanity + matches('^term://', bufname_before) -- sanity command('argument 1') helpers.feed([[<C-\><C-N>]]) |