mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:8.2.1925: list/dict test fails
Problem: List/dict test fails. Solution: Correct expected exception.6d967125ad
Cherry-pick e_dictkey[] change from patch 8.2.1924. N/A patches for version.c: vim-patch:8.2.1929: MS-Windows: problem loading Perl 5.32 Problem: MS-Windows: problem loading Perl 5.32. Solution: Define NO_THREAD_SAFE_LOCALE. (Ken Takata, closes vim/vim#7234)0289065e41
vim-patch:8.2.1932: compiler warnings when building with Athena GUI Problem: Compiler warnings when building with Athena GUI. Solution: Fix function signatures.963734e316
This commit is contained in:
@@ -941,8 +941,10 @@ EXTERN char_u e_readonly[] INIT(= N_(
|
||||
EXTERN char_u e_readonlyvar[] INIT(= N_(
|
||||
"E46: Cannot change read-only variable \"%.*s\""));
|
||||
EXTERN char_u e_dictreq[] INIT(= N_("E715: Dictionary required"));
|
||||
EXTERN char_u e_toomanyarg[] INIT(= N_("E118: Too many arguments for function: %s"));
|
||||
EXTERN char_u e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: %s"));
|
||||
EXTERN char_u e_toomanyarg[] INIT(= N_(
|
||||
"E118: Too many arguments for function: %s"));
|
||||
EXTERN char_u e_dictkey[] INIT(= N_(
|
||||
"E716: Key not present in Dictionary: \"%s\""));
|
||||
EXTERN char_u e_listreq[] INIT(= N_("E714: List required"));
|
||||
EXTERN char_u e_listdictarg[] INIT(= N_(
|
||||
"E712: Argument of %s must be a List or Dictionary"));
|
||||
|
@@ -199,9 +199,9 @@ func Test_dict_big()
|
||||
try
|
||||
let n = d[1500]
|
||||
catch
|
||||
let str=substitute(v:exception, '\v(.{14}).*( \d{4}).*', '\1\2', '')
|
||||
let str = substitute(v:exception, '\v(.{14}).*( "\d{4}").*', '\1\2', '')
|
||||
endtry
|
||||
call assert_equal('Vim(let):E716: 1500', str)
|
||||
call assert_equal('Vim(let):E716: "1500"', str)
|
||||
|
||||
" lookup each items
|
||||
for i in range(1500)
|
||||
|
@@ -132,7 +132,7 @@ describe('NULL', function()
|
||||
end)
|
||||
describe('dict', function()
|
||||
it('does not crash when indexing NULL dict', function()
|
||||
eq('\nE716: Key not present in Dictionary: test\nE15: Invalid expression: v:_null_dict.test',
|
||||
eq('\nE716: Key not present in Dictionary: "test"\nE15: Invalid expression: v:_null_dict.test',
|
||||
redir_exec('echo v:_null_dict.test'))
|
||||
end)
|
||||
null_expr_test('makes extend error out', 'extend(D, {})', 'E742: Cannot change value of extend() argument', 0)
|
||||
|
@@ -229,7 +229,7 @@ describe('list and dictionary types', function()
|
||||
try
|
||||
let n = d[1500]
|
||||
catch
|
||||
$put =substitute(v:exception, '\v(.{14}).*( \d{4}).*', '\1\2', '')
|
||||
$put = substitute(v:exception, '\v(.{14}).*( \"\d{4}\").*', '\1\2', '')
|
||||
endtry
|
||||
" Lookup each items.
|
||||
for i in range(1500)
|
||||
@@ -260,7 +260,7 @@ describe('list and dictionary types', function()
|
||||
expect([[
|
||||
|
||||
3000 2900 2001 1600 1501
|
||||
Vim(let):E716: 1500
|
||||
Vim(let):E716: "1500"
|
||||
NONE 2999
|
||||
33=999
|
||||
{'33': 999}]])
|
||||
|
Reference in New Issue
Block a user