diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/ex_cmds/excmd_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/ex_cmds/excmd_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/excmd_spec.lua | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/test/functional/ex_cmds/excmd_spec.lua b/test/functional/ex_cmds/excmd_spec.lua index a92329ede5..030816c6cb 100644 --- a/test/functional/ex_cmds/excmd_spec.lua +++ b/test/functional/ex_cmds/excmd_spec.lua @@ -1,4 +1,4 @@ -local helpers = require("test.functional.helpers")(after_each) +local helpers = require('test.functional.helpers')(after_each) local command = helpers.command local eq = helpers.eq local clear = helpers.clear @@ -20,15 +20,25 @@ describe('Ex cmds', function() command(':later 9999999999999999999999999999999999999999') command(':echo expand("#<9999999999999999999999999999999999999999")') command(':lockvar 9999999999999999999999999999999999999999') - command(':winsize 9999999999999999999999999999999999999999 9999999999999999999999999999999999999999') - check_excmd_err(':tabnext 9999999999999999999999999999999999999999', - 'Vim(tabnext):E475: Invalid argument: 9999999999999999999999999999999999999999') - check_excmd_err(':N 9999999999999999999999999999999999999999', - 'Vim(Next):E939: Positive count required') - check_excmd_err(':bdelete 9999999999999999999999999999999999999999', - 'Vim(bdelete):E939: Positive count required') - eq('Vim(menu):E329: No menu "9999999999999999999999999999999999999999"', - pcall_err(command, ':menu 9999999999999999999999999999999999999999')) + command( + ':winsize 9999999999999999999999999999999999999999 9999999999999999999999999999999999999999' + ) + check_excmd_err( + ':tabnext 9999999999999999999999999999999999999999', + 'Vim(tabnext):E475: Invalid argument: 9999999999999999999999999999999999999999' + ) + check_excmd_err( + ':N 9999999999999999999999999999999999999999', + 'Vim(Next):E939: Positive count required' + ) + check_excmd_err( + ':bdelete 9999999999999999999999999999999999999999', + 'Vim(bdelete):E939: Positive count required' + ) + eq( + 'Vim(menu):E329: No menu "9999999999999999999999999999999999999999"', + pcall_err(command, ':menu 9999999999999999999999999999999999999999') + ) assert_alive() end) |