1
0
forked from aniani/vim

patch 8.2.0448: various functions not properly tested

Problem:    Various functions not properly tested.
Solution:   Add more tests, especially for failures. (Yegappan Lakshmanan,
            closes #5843)
This commit is contained in:
Bram Moolenaar
2020-03-25 22:23:46 +01:00
parent bfcfd5784a
commit 0e05de4622
26 changed files with 190 additions and 1 deletions

View File

@@ -242,6 +242,11 @@ func Test_substitute_errors()
setl nomodifiable
call assert_fails('s/foo/bar/', 'E21:')
call assert_fails("let s=substitute([], 'a', 'A', 'g')", 'E730:')
call assert_fails("let s=substitute('abcda', [], 'A', 'g')", 'E730:')
call assert_fails("let s=substitute('abcda', 'a', [], 'g')", 'E730:')
call assert_fails("let s=substitute('abcda', 'a', 'A', [])", 'E730:')
bwipe!
endfunc