mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.2656: some command line arguments and regexp errors not tested (#29761)
Problem: Some command line arguments and regexp errors not tested.
Solution: Add a few test cases. (Dominique Pellé, closes vim/vim#8013)
a2b3e7dc92
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
620f4bd9b7
commit
79002cf438
@ -970,8 +970,17 @@ func Test_regexp_error()
|
|||||||
call assert_fails("call matchlist('x x', '\\%#=1 \\ze*')", 'E888:')
|
call assert_fails("call matchlist('x x', '\\%#=1 \\ze*')", 'E888:')
|
||||||
call assert_fails("call matchlist('x x', '\\%#=2 \\zs*')", 'E888:')
|
call assert_fails("call matchlist('x x', '\\%#=2 \\zs*')", 'E888:')
|
||||||
call assert_fails("call matchlist('x x', '\\%#=2 \\ze*')", 'E888:')
|
call assert_fails("call matchlist('x x', '\\%#=2 \\ze*')", 'E888:')
|
||||||
call assert_fails('exe "normal /\\%#=1\\%[x\\%[x]]\<CR>"', 'E369:')
|
|
||||||
call assert_fails("call matchstr('abcd', '\\%o841\\%o142')", 'E678:')
|
call assert_fails("call matchstr('abcd', '\\%o841\\%o142')", 'E678:')
|
||||||
|
call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647c')", 'E951:')
|
||||||
|
call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647l')", 'E951:')
|
||||||
|
call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647v')", 'E951:')
|
||||||
|
call assert_fails('exe "normal /\\%#=1\\%[x\\%[x]]\<CR>"', 'E369:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%2147483647l\<CR>"', 'E951:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%2147483647c\<CR>"', 'E951:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%102261126v\<CR>"', 'E951:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%2147483646l\<CR>"', 'E486:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%2147483646c\<CR>"', 'E486:')
|
||||||
|
call assert_fails('exe "normal /\\%#=2\\%102261125v\<CR>"', 'E486:')
|
||||||
call assert_equal('', matchstr('abcd', '\%o181\%o142'))
|
call assert_equal('', matchstr('abcd', '\%o181\%o142'))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user