mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: feed_command is deprecated #33674
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local t = require('test.testutil')
|
||||
local n = require('test.functional.testnvim')()
|
||||
|
||||
local clear, feed_command, feed, ok, eval = n.clear, n.feed_command, n.feed, t.ok, n.eval
|
||||
local clear, ok, eval = n.clear, t.ok, n.eval
|
||||
|
||||
describe(':grep', function()
|
||||
before_each(clear)
|
||||
@@ -12,11 +12,11 @@ describe(':grep', function()
|
||||
return
|
||||
end
|
||||
|
||||
feed_command([[set grepprg=grep\ -r]])
|
||||
n.command([[set grepprg=grep\ -r]])
|
||||
-- Change to test directory so that the test does not run too long.
|
||||
feed_command('cd test')
|
||||
feed_command('grep a **/*')
|
||||
feed('<cr>') -- Press ENTER
|
||||
n.command('cd test')
|
||||
n.feed(':grep a **/*<cr>')
|
||||
n.feed('<cr>') -- Press ENTER
|
||||
ok(eval('len(getqflist())') > 9000) -- IT'S OVER 9000!!1
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user