diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-01 09:42:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 09:42:53 -0700 |
commit | 6751d6254b35d216a86817cd414d5d06e3ff641d (patch) | |
tree | a2d6f016fb0b610cd4573477b8d133cca64fb871 /test/functional/options | |
parent | 0603eba6e713b2bd25cbbb55caf2342b0ccdece9 (diff) | |
download | rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.gz rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.bz2 rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.zip |
refactor(tests): use assert_alive() #15546
Diffstat (limited to 'test/functional/options')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/options/tabstop_spec.lua | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index bd3553ec59..6620c9acef 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -2,6 +2,7 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') +local assert_alive = helpers.assert_alive local meths = helpers.meths local command = helpers.command local clear = helpers.clear @@ -510,8 +511,7 @@ describe('stdpath()', function() eq(datadir, funcs.fnamemodify(funcs.stdpath('data'), ':t')) eq('table', type(funcs.stdpath('config_dirs'))) eq('table', type(funcs.stdpath('data_dirs'))) - -- Check for crash. #8393 - eq(2, eval('1+1')) + assert_alive() -- Check for crash. #8393 end) context('returns a String', function() diff --git a/test/functional/options/tabstop_spec.lua b/test/functional/options/tabstop_spec.lua index dc3ba38438..e34f678650 100644 --- a/test/functional/options/tabstop_spec.lua +++ b/test/functional/options/tabstop_spec.lua @@ -1,9 +1,8 @@ local helpers = require('test.functional.helpers')(after_each) +local assert_alive = helpers.assert_alive local clear = helpers.clear local feed = helpers.feed -local eq = helpers.eq -local eval = helpers.eval describe("'tabstop' option", function() before_each(function() @@ -18,6 +17,6 @@ describe("'tabstop' option", function() -- Set 'tabstop' to a very high value. -- Use feed(), not command(), to provoke crash. feed(':set tabstop=3000000000<CR>') - eq(2, eval("1+1")) -- Still alive? + assert_alive() end) end) |