comparison src/testdir/test_sort.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 08940efa6b4e
children 3e4981de5636
comparison
equal deleted inserted replaced
22374:e9b3a8c9ae2c 22375:595ea7f099cd
1254 " Needs atleast two lines for this test 1254 " Needs atleast two lines for this test
1255 call setline(1, ['line1', 'line2']) 1255 call setline(1, ['line1', 'line2'])
1256 call assert_fails('sort no', 'E474:') 1256 call assert_fails('sort no', 'E474:')
1257 call assert_fails('sort c', 'E475:') 1257 call assert_fails('sort c', 'E475:')
1258 call assert_fails('sort #pat%', 'E654:') 1258 call assert_fails('sort #pat%', 'E654:')
1259 call assert_fails('sort /\%(/', 'E53:')
1259 1260
1260 enew! 1261 enew!
1261 endfunc 1262 endfunc
1262 1263
1263 func Test_sort_large_num() 1264 func Test_sort_large_num()