aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-25 16:31:17 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-25 16:33:18 -0400
commit06d9fa2e0c177f1b16fc97eefd32c552d63b0e44 (patch)
tree54c985c52c21081e811bd72e1827ff9fbcb5c3c3 /src
parentf2f625c984394d8bca598dc32370e2ec7b33a27b (diff)
downloadrneovim-06d9fa2e0c177f1b16fc97eefd32c552d63b0e44.tar.gz
rneovim-06d9fa2e0c177f1b16fc97eefd32c552d63b0e44.tar.bz2
rneovim-06d9fa2e0c177f1b16fc97eefd32c552d63b0e44.zip
vim-patch:8.1.0751: some regexp errors are not tested
Problem: Some regexp errors are not tested. Solution: Add a test function. https://github.com/vim/vim/commit/6057ed4720eaa1d546bbd234e6957ec0163e0e9b
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_regexp_latin.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim
index 0619e9c027..de209fa9ec 100644
--- a/src/nvim/testdir/test_regexp_latin.vim
+++ b/src/nvim/testdir/test_regexp_latin.vim
@@ -73,3 +73,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