diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-17 21:33:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-17 21:33:30 +0100 |
commit | bc2b71d44a0b90b6aeb3534a76912fccbe5577df (patch) | |
tree | a77a42312e3d84710013ca0ba0f919ab79867560 /src/testdir/test_window_cmd.vim | |
parent | b13af50f73dd89503c915f76fcf92be58789521a (diff) | |
download | vim-git-bc2b71d44a0b90b6aeb3534a76912fccbe5577df.tar.gz |
patch 8.2.0270: some code not covered by testsv8.2.0270
Problem: Some code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes #5649)
Diffstat (limited to 'src/testdir/test_window_cmd.vim')
-rw-r--r-- | src/testdir/test_window_cmd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_window_cmd.vim b/src/testdir/test_window_cmd.vim index 24501e14c..362b0eb02 100644 --- a/src/testdir/test_window_cmd.vim +++ b/src/testdir/test_window_cmd.vim @@ -940,6 +940,15 @@ func Test_window_only() new call assert_fails('only', 'E445:') only! + " Test for :only with a count + let wid = win_getid() + new + new + 3only + call assert_equal(1, winnr('$')) + call assert_equal(wid, win_getid()) + call assert_fails('close', 'E444:') + call assert_fails('%close', 'E16:') endfunc " Test for errors with :wincmd |