Mercurial > vim
comparison src/testdir/test_mapping.vim @ 19370:02111977dd05 v8.2.0243
patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Commit: https://github.com/vim/vim/commit/9f6277bdde97b7767ded43a0b5a2023eb601b3b7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 11 22:04:02 2020 +0100
patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Problem: Insufficient code coverage for ex_docmd.c functions.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5618)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Feb 2020 22:15:04 +0100 |
parents | f7081bd2680e |
children | 2f4be7ca1b1b |
comparison
equal
deleted
inserted
replaced
19369:05c259d4233d | 19370:02111977dd05 |
---|---|
550 | 550 |
551 " invalid <expr> map | 551 " invalid <expr> map |
552 map <expr> ,f abc | 552 map <expr> ,f abc |
553 call assert_fails('normal ,f', 'E121:') | 553 call assert_fails('normal ,f', 'E121:') |
554 unmap <expr> ,f | 554 unmap <expr> ,f |
555 | |
556 " Recursive use of :normal in a map | |
557 set maxmapdepth=100 | |
558 map gq :normal gq<CR> | |
559 call assert_fails('normal gq', 'E192:') | |
560 unmap gq | |
561 set maxmapdepth& | |
555 endfunc | 562 endfunc |
556 | 563 |
557 " Test for <special> key mapping | 564 " Test for <special> key mapping |
558 func Test_map_special() | 565 func Test_map_special() |
559 new | 566 new |