diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-09 02:20:48 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-09 03:24:20 +0300 |
commit | e170186a8df448cab30dba7af6a6b2d081bfd62e (patch) | |
tree | 0b502f76a243f625a5eac56e84521fe94df0c56d | |
parent | bc98c3753290a33ec1606a4cd2b30233d045a4e8 (diff) | |
download | rneovim-e170186a8df448cab30dba7af6a6b2d081bfd62e.tar.gz rneovim-e170186a8df448cab30dba7af6a6b2d081bfd62e.tar.bz2 rneovim-e170186a8df448cab30dba7af6a6b2d081bfd62e.zip |
functests: Fix legacy/close_count_spec
-rw-r--r-- | test/functional/legacy/close_count_spec.lua | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/test/functional/legacy/close_count_spec.lua b/test/functional/legacy/close_count_spec.lua index 762493151c..9b932e2ef0 100644 --- a/test/functional/legacy/close_count_spec.lua +++ b/test/functional/legacy/close_count_spec.lua @@ -4,6 +4,7 @@ local helpers = require('test.functional.helpers')(after_each) local eq = helpers.eq local wait = helpers.wait +local eval = helpers.eval local feed = helpers.feed local clear = helpers.clear local command = helpers.command @@ -13,9 +14,7 @@ describe('close_count', function() it('is working', function() command('let tests = []') - command('for i in range(5)') - command('new') - command('endfor') + command('for i in range(5)|new|endfor') command('4wincmd w') command('close!') command('let buffers = []') @@ -50,9 +49,7 @@ describe('close_count', function() command('only!') command('b1') command('let tests = []') - command('for i in range(5)') - command('new') - command('endfor') + command('for i in range(5)|new|endfor') command('let buffers = []') command('windo call add(buffers, bufnr("%"))') eq({13, 12, 11, 10, 9, 1}, eval('buffers')) @@ -91,9 +88,7 @@ describe('close_count', function() command('b1') command('let tests = []') command('set hidden') - command('for i in range(5)') - command('new') - command('endfor') + command('for i in range(5)|new|endfor') command('1wincmd w') command('$ hide') command('let buffers = []') @@ -112,9 +107,7 @@ describe('close_count', function() command('b1') command('let tests = []') command('set hidden') - command('for i in range(5)') - command('new') - command('endfor') + command('for i in range(5)|new|endfor') command('4wincmd w') feed('<C-W>c<cr>') wait() |