diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-06-07 18:00:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 18:00:43 +0200 |
commit | 980b12edbabc573f72d762dde844a771cc705e84 (patch) | |
tree | 7f85b4eb417f328163685b4326b300f3c98c9c94 /test/functional/eval | |
parent | dbc8ec94464049311e69274cad562585d7bb6749 (diff) | |
parent | 22f6da9514eeebbb7f2344b1b0179b170b1fc9d8 (diff) | |
download | rneovim-980b12edbabc573f72d762dde844a771cc705e84.tar.gz rneovim-980b12edbabc573f72d762dde844a771cc705e84.tar.bz2 rneovim-980b12edbabc573f72d762dde844a771cc705e84.zip |
Merge pull request #12192 from Billy4195/vim-8.2.0629
[RFC] vim-patch:8.2.0629
Diffstat (limited to 'test/functional/eval')
-rw-r--r-- | test/functional/eval/buf_functions_spec.lua | 6 | ||||
-rw-r--r-- | test/functional/eval/sort_spec.lua | 3 | ||||
-rw-r--r-- | test/functional/eval/uniq_spec.lua | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/test/functional/eval/buf_functions_spec.lua b/test/functional/eval/buf_functions_spec.lua index 37f4c89bfd..06841a4521 100644 --- a/test/functional/eval/buf_functions_spec.lua +++ b/test/functional/eval/buf_functions_spec.lua @@ -31,10 +31,12 @@ for _, func in ipairs({'bufname(%s)', 'bufnr(%s)', 'bufwinnr(%s)', it('errors out when receives v:true/v:false/v:null', function() -- Not compatible with Vim: in Vim it always results in buffer not found -- without any error messages. - for _, var in ipairs({'v:true', 'v:false', 'v:null'}) do - eq('Vim(call):E5300: Expected a Number or a String', + for _, var in ipairs({'v:true', 'v:false'}) do + eq('Vim(call):E5299: Expected a Number or a String, Boolean found', exc_exec('call ' .. func:format(var))) end + eq('Vim(call):E5300: Expected a Number or a String', + exc_exec('call ' .. func:format('v:null'))) end) it('errors out when receives invalid argument', function() eq('Vim(call):E745: Expected a Number or a String, List found', diff --git a/test/functional/eval/sort_spec.lua b/test/functional/eval/sort_spec.lua index 82557575ce..e1cc2c2924 100644 --- a/test/functional/eval/sort_spec.lua +++ b/test/functional/eval/sort_spec.lua @@ -14,7 +14,7 @@ before_each(clear) describe('sort()', function() it('errors out when sorting special values', function() - eq('Vim(call):E907: Using a special value as a Float', + eq('Vim(call):E362: Using a boolean value as a Float', exc_exec('call sort([v:true, v:false], "f")')) end) @@ -30,6 +30,7 @@ describe('sort()', function() errors[err] = true end eq({ + ['E362: Using a boolean value as a Float']=true, ['E891: Using a Funcref as a Float']=true, ['E892: Using a String as a Float']=true, ['E893: Using a List as a Float']=true, diff --git a/test/functional/eval/uniq_spec.lua b/test/functional/eval/uniq_spec.lua index 0e7a013e32..5cdba0a0f6 100644 --- a/test/functional/eval/uniq_spec.lua +++ b/test/functional/eval/uniq_spec.lua @@ -11,7 +11,7 @@ before_each(clear) describe('uniq()', function() it('errors out when processing special values', function() - eq('Vim(call):E907: Using a special value as a Float', + eq('Vim(call):E362: Using a boolean value as a Float', exc_exec('call uniq([v:true, v:false], "f")')) end) |