comparison src/testdir/test_options.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 b5abb88d5700
children 92a100fc5e17
comparison
equal deleted inserted replaced
22374:e9b3a8c9ae2c 22375:595ea7f099cd
409 call assert_fails('set invcmdheight', 'E474:') 409 call assert_fails('set invcmdheight', 'E474:')
410 if has('python') && has('python3') 410 if has('python') && has('python3')
411 call assert_fails('set pyxversion=6', 'E474:') 411 call assert_fails('set pyxversion=6', 'E474:')
412 endif 412 endif
413 call assert_fails("let &tabstop='ab'", 'E521:') 413 call assert_fails("let &tabstop='ab'", 'E521:')
414 call assert_fails('set spellcapcheck=%\\(', 'E54:')
414 endfunc 415 endfunc
415 416
416 func CheckWasSet(name) 417 func CheckWasSet(name)
417 let verb_cm = execute('verbose set ' .. a:name .. '?') 418 let verb_cm = execute('verbose set ' .. a:name .. '?')
418 call assert_match('Last set from.*test_options.vim', verb_cm) 419 call assert_match('Last set from.*test_options.vim', verb_cm)