]> granicus.if.org Git - vim/commitdiff
patch 8.1.0751: some regexp errors are not tested v8.1.0751
authorBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2019 22:19:29 +0000 (23:19 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2019 22:19:29 +0000 (23:19 +0100)
Problem:    Some regexp errors are not tested.
Solution:   Add a test function.

src/testdir/test_regexp_latin.vim
src/version.c

index a8fa64d2a7d854bfce4abdba3cad46a4c29b91a2..15249455edf4c955d904e6a9be7221c9ae971714 100644 (file)
@@ -72,3 +72,15 @@ func Test_backref()
   call assert_fails('call search("\\%#=2\\(e\\1\\)")', 'E65:')
   bwipe!
 endfunc
+
+func Test_multi_failure()
+  set re=1
+  call assert_fails('/a**', 'E61:')
+  call assert_fails('/a*\+', 'E62:')
+  call assert_fails('/a\{a}', 'E554:')
+  set re=2
+  call assert_fails('/a**', 'E871:')
+  call assert_fails('/a*\+', 'E871:')
+  call assert_fails('/a\{a}', 'E870:')
+  set re=0
+endfunc
index b0f488657ea057133304a005c0c355c5cf784ed6..f84da1dd0bcd0f4d345c297db7c6908544953d23 100644 (file)
@@ -795,6 +795,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    751,
 /**/
     750,
 /**/