Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 25617:28f1b7c38ba1 v8.2.3345
patch 8.2.3345: some code not covered by tests
Commit: https://github.com/vim/vim/commit/bfb2bb16bc69441fa3ec13caacb2c94637a8a0ec
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Aug 14 21:11:51 2021 +0200
patch 8.2.3345: some code not covered by tests
Problem: Some code not covered by tests.
Solution: Add a few more tests. (Dominique Pell?, closes https://github.com/vim/vim/issues/8757)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Aug 2021 21:15:02 +0200 |
parents | df3d056b4663 |
children | 46e2b5f66800 |
comparison
equal
deleted
inserted
replaced
25616:1c4fe811755c | 25617:28f1b7c38ba1 |
---|---|
843 | 843 |
844 " completion of autocmd group after comma | 844 " completion of autocmd group after comma |
845 call feedkeys(":doautocmd BufNew,BufEn\<C-A>\<C-B>\"\<CR>", 'xt') | 845 call feedkeys(":doautocmd BufNew,BufEn\<C-A>\<C-B>\"\<CR>", 'xt') |
846 call assert_equal("\"doautocmd BufNew,BufEnter", @:) | 846 call assert_equal("\"doautocmd BufNew,BufEnter", @:) |
847 | 847 |
848 " completion of file name in :doautocmd | |
849 call writefile([], 'Xfile1') | |
850 call writefile([], 'Xfile2') | |
851 call feedkeys(":doautocmd BufEnter Xfi\<C-A>\<C-B>\"\<CR>", 'xt') | |
852 call assert_equal("\"doautocmd BufEnter Xfile1 Xfile2", @:) | |
853 call delete('Xfile1') | |
854 call delete('Xfile2') | |
855 | |
848 " completion for the :augroup command | 856 " completion for the :augroup command |
849 augroup XTest | 857 augroup XTest |
850 augroup END | 858 augroup END |
851 call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt') | 859 call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt') |
852 call assert_equal("\"augroup XTest", @:) | 860 call assert_equal("\"augroup XTest", @:) |
1412 " Test for backtick expression in the command line | 1420 " Test for backtick expression in the command line |
1413 func Test_cmd_backtick() | 1421 func Test_cmd_backtick() |
1414 %argd | 1422 %argd |
1415 argadd `=['a', 'b', 'c']` | 1423 argadd `=['a', 'b', 'c']` |
1416 call assert_equal(['a', 'b', 'c'], argv()) | 1424 call assert_equal(['a', 'b', 'c'], argv()) |
1425 %argd | |
1426 | |
1427 argadd `echo abc def` | |
1428 call assert_equal(['abc def'], argv()) | |
1417 %argd | 1429 %argd |
1418 endfunc | 1430 endfunc |
1419 | 1431 |
1420 " Test for the :! command | 1432 " Test for the :! command |
1421 func Test_cmd_bang() | 1433 func Test_cmd_bang() |