diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-06 17:53:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-06 17:53:06 +0100 |
commit | ec892234788d37bfed47d8bf82dd4cae8d335ad9 (patch) | |
tree | 4584451a763a30e01397515f952acc90783f43c1 /src/testdir/test_vim9_builtin.vim | |
parent | b3c9077a5be76cd88b9a0c07b6d6c072d5c8ac3e (diff) | |
download | vim-git-ec892234788d37bfed47d8bf82dd4cae8d335ad9.tar.gz |
patch 8.2.4892: test failures because of changed error messagesv8.2.4892
Problem: Test failures because of changed error messages.
Solution: Adjust the exptected error messages.
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index b4637434d..c9334bc0f 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -2157,7 +2157,7 @@ def Test_job_getchannel() CheckFeature job else v9.CheckDefAndScriptFailure(['job_getchannel("a")'], ['E1013: Argument 1: type mismatch, expected job but got string', 'E1218: Job required for argument 1']) - assert_fails('job_getchannel(test_null_job())', 'E916: not a valid job') + assert_fails('job_getchannel(test_null_job())', 'E916: Not a valid job') endif enddef @@ -2166,7 +2166,7 @@ def Test_job_info() CheckFeature job else v9.CheckDefAndScriptFailure(['job_info("a")'], ['E1013: Argument 1: type mismatch, expected job but got string', 'E1218: Job required for argument 1']) - assert_fails('job_info(test_null_job())', 'E916: not a valid job') + assert_fails('job_info(test_null_job())', 'E916: Not a valid job') endif enddef @@ -4071,8 +4071,8 @@ def Test_substitute() assert_equal('AX234', res) if has('job') - assert_fails('"text"->substitute(".*", () => test_null_job(), "")', 'E908: using an invalid value as a String: job') - assert_fails('"text"->substitute(".*", () => test_null_channel(), "")', 'E908: using an invalid value as a String: channel') + assert_fails('"text"->substitute(".*", () => test_null_job(), "")', 'E908: Using an invalid value as a String: job') + assert_fails('"text"->substitute(".*", () => test_null_channel(), "")', 'E908: Using an invalid value as a String: channel') endif v9.CheckDefAndScriptFailure(['substitute(1, "b", "1", "d")'], ['E1013: Argument 1: type mismatch, expected string but got number', 'E1174: String required for argument 1']) v9.CheckDefAndScriptFailure(['substitute("a", 2, "1", "d")'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2']) |