diff options
author | Dylan Armstrong <dylan@dylan.is> | 2021-02-27 09:38:38 -0600 |
---|---|---|
committer | Dylan Armstrong <dylan@dylan.is> | 2021-02-27 09:38:38 -0600 |
commit | 1d4a7c60391de69af21502b09e4f00ecb01b4bf9 (patch) | |
tree | 6e5e0343e7c61cd7d790fa4e7265c24d7585ac08 /test/functional/terminal/buffer_spec.lua | |
parent | a9eeeec5d5a64a8f3a11f38319d70537f929e667 (diff) | |
download | rneovim-1d4a7c60391de69af21502b09e4f00ecb01b4bf9.tar.gz rneovim-1d4a7c60391de69af21502b09e4f00ecb01b4bf9.tar.bz2 rneovim-1d4a7c60391de69af21502b09e4f00ecb01b4bf9.zip |
test: use assert_alive helper rather than eq
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index 5d1e2618c1..297678a531 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -263,7 +263,7 @@ describe(':terminal buffer', function() feed_command('terminal') feed('<c-\\><c-n>') feed_command('put a') -- buffer a is empty - eq(2, eval('1+1')) -- check nvim still running + helpers.assert_alive() end) end) @@ -284,7 +284,7 @@ describe('No heap-buffer-overflow when using', function() feed('$') -- Let termopen() modify the buffer feed_command('call termopen("echo")') - eq(2, eval('1+1')) -- check nvim still running + helpers.assert_alive() feed_command('bdelete!') end) end) @@ -294,6 +294,6 @@ describe('No heap-buffer-overflow when', function() feed_command('set nowrap') feed_command('autocmd TermOpen * startinsert') feed_command('call feedkeys("4000ai\\<esc>:terminal!\\<cr>")') - eq(2, eval('1+1')) + helpers.assert_alive() end) end) |