Mercurial > vim
comparison src/testdir/test_regexp_latin.vim @ 24230:ed0fc4787392 v8.2.2656
patch 8.2.2656: some command line arguments and regexp errors not tested
Commit: https://github.com/vim/vim/commit/a2b3e7dc9201fb3d8782c6b4ab53862160e254da
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 26 17:24:34 2021 +0100
patch 8.2.2656: some command line arguments and regexp errors not tested
Problem: Some command line arguments and regexp errors not tested.
Solution: Add a few test cases. (Dominique Pell?, closes https://github.com/vim/vim/issues/8013)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Mar 2021 17:30:03 +0100 |
parents | 90b16a0022e5 |
children | 10b269321459 |
comparison
equal
deleted
inserted
replaced
24229:4d37f1051de6 | 24230:ed0fc4787392 |
---|---|
922 func Test_regexp_error() | 922 func Test_regexp_error() |
923 call assert_fails("call matchlist('x x', '\\%#=1 \\zs*')", 'E888:') | 923 call assert_fails("call matchlist('x x', '\\%#=1 \\zs*')", 'E888:') |
924 call assert_fails("call matchlist('x x', '\\%#=1 \\ze*')", 'E888:') | 924 call assert_fails("call matchlist('x x', '\\%#=1 \\ze*')", 'E888:') |
925 call assert_fails("call matchlist('x x', '\\%#=2 \\zs*')", 'E888:') | 925 call assert_fails("call matchlist('x x', '\\%#=2 \\zs*')", 'E888:') |
926 call assert_fails("call matchlist('x x', '\\%#=2 \\ze*')", 'E888:') | 926 call assert_fails("call matchlist('x x', '\\%#=2 \\ze*')", 'E888:') |
927 call assert_fails('exe "normal /\\%#=1\\%[x\\%[x]]\<CR>"', 'E369:') | |
928 call assert_fails("call matchstr('abcd', '\\%o841\\%o142')", 'E678:') | 927 call assert_fails("call matchstr('abcd', '\\%o841\\%o142')", 'E678:') |
928 call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647c')", 'E951:') | |
929 call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647l')", 'E951:') | |
930 call assert_fails("call matchstr('abcd', '\\%#=2\\%2147483647v')", 'E951:') | |
931 call assert_fails('exe "normal /\\%#=1\\%[x\\%[x]]\<CR>"', 'E369:') | |
932 call assert_fails('exe "normal /\\%#=2\\%2147483647l\<CR>"', 'E951:') | |
933 call assert_fails('exe "normal /\\%#=2\\%2147483647c\<CR>"', 'E951:') | |
934 call assert_fails('exe "normal /\\%#=2\\%102261126v\<CR>"', 'E951:') | |
935 call assert_fails('exe "normal /\\%#=2\\%2147483646l\<CR>"', 'E486:') | |
936 call assert_fails('exe "normal /\\%#=2\\%2147483646c\<CR>"', 'E486:') | |
937 call assert_fails('exe "normal /\\%#=2\\%102261125v\<CR>"', 'E486:') | |
929 call assert_equal('', matchstr('abcd', '\%o181\%o142')) | 938 call assert_equal('', matchstr('abcd', '\%o181\%o142')) |
930 endfunc | 939 endfunc |
931 | 940 |
932 " Test for using the last substitute string pattern (~) | 941 " Test for using the last substitute string pattern (~) |
933 func Test_regexp_last_subst_string() | 942 func Test_regexp_last_subst_string() |