summaryrefslogtreecommitdiff
path: root/src/testdir/test_listdict.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-23 22:38:05 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-23 22:38:05 +0200
commit531be47ac5522807b265c6287021a01c9b895ac9 (patch)
tree6ff8a223defdf477cdd5243fc2eee4f53ae71292 /src/testdir/test_listdict.vim
parent851d108313317a062371a6750e6c6bf370a9bafa (diff)
downloadvim-git-531be47ac5522807b265c6287021a01c9b895ac9.tar.gz
patch 8.2.1736: failure to compile a pattern not tested muchv8.2.1736
Problem: Failure to compile a pattern not tested much. Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan, closes #7004)
Diffstat (limited to 'src/testdir/test_listdict.vim')
-rw-r--r--src/testdir/test_listdict.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_listdict.vim b/src/testdir/test_listdict.vim
index 66b84060a..63fa04ef9 100644
--- a/src/testdir/test_listdict.vim
+++ b/src/testdir/test_listdict.vim
@@ -753,6 +753,7 @@ func Test_str_split()
call assert_equal(['', 'a', '', 'b', '', 'c', ''], split('abc', '\zs', 1))
call assert_fails("call split('abc', [])", 'E730:')
call assert_fails("call split('abc', 'b', [])", 'E745:')
+ call assert_equal(['abc'], split('abc', '\\%('))
endfunc
" compare recursively linked list and dict