comparison src/testdir/test_history.vim @ 22375:595ea7f099cd v8.2.1736

patch 8.2.1736: failure to compile a pattern not tested much Commit: https://github.com/vim/vim/commit/531be47ac5522807b265c6287021a01c9b895ac9 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 23 22:38:05 2020 +0200 patch 8.2.1736: failure to compile a pattern not tested much Problem: Failure to compile a pattern not tested much. Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan, closes #7004)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Sep 2020 22:45:06 +0200
parents 848dc460adf0
children 7dbd3a65a04b
comparison
equal deleted inserted replaced
22374:e9b3a8c9ae2c 22375:595ea7f099cd
93 call assert_fails('call histget([])', 'E730:') 93 call assert_fails('call histget([])', 'E730:')
94 call assert_equal(-1, histnr('abc')) 94 call assert_equal(-1, histnr('abc'))
95 call assert_fails('call histnr([])', 'E730:') 95 call assert_fails('call histnr([])', 'E730:')
96 call assert_fails('history xyz', 'E488:') 96 call assert_fails('history xyz', 'E488:')
97 call assert_fails('history ,abc', 'E488:') 97 call assert_fails('history ,abc', 'E488:')
98 call assert_fails('call histdel(":", "\\%(")', 'E53:')
98 endfunction 99 endfunction
99 100
100 function Test_Search_history_window() 101 function Test_Search_history_window()
101 new 102 new
102 call setline(1, ['a', 'b', 'a', 'b']) 103 call setline(1, ['a', 'b', 'a', 'b'])