Mercurial > vim
comparison src/testdir/test_listdict.vim @ 15406:63b02fcf1361 v8.1.0711
patch 8.1.0711: test files still use function!
commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 9 23:01:02 2019 +0100
patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Jan 2019 23:15:05 +0100 |
parents | c5a2fb8b221d |
children | 4af72c724093 |
comparison
equal
deleted
inserted
replaced
15405:3a8785d45112 | 15406:63b02fcf1361 |
---|---|
497 call assert_fails("call extend(d, {'a' : 123})", 'E741') | 497 call assert_fails("call extend(d, {'a' : 123})", 'E741') |
498 call assert_equal({'a': 99, 'b': 100}, d) | 498 call assert_equal({'a': 99, 'b': 100}, d) |
499 endfunc | 499 endfunc |
500 | 500 |
501 " No remove() of write-protected scope-level variable | 501 " No remove() of write-protected scope-level variable |
502 func! Tfunc(this_is_a_long_parameter_name) | 502 func Tfunc1(this_is_a_long_parameter_name) |
503 call assert_fails("call remove(a:, 'this_is_a_long_parameter_name')", 'E795') | 503 call assert_fails("call remove(a:, 'this_is_a_long_parameter_name')", 'E795') |
504 endfun | 504 endfunc |
505 func Test_dict_scope_var_remove() | 505 func Test_dict_scope_var_remove() |
506 call Tfunc('testval') | 506 call Tfunc1('testval') |
507 endfunc | 507 endfunc |
508 | 508 |
509 " No extend() of write-protected scope-level variable | 509 " No extend() of write-protected scope-level variable |
510 func! Tfunc(this_is_a_long_parameter_name) | 510 func Tfunc2(this_is_a_long_parameter_name) |
511 call assert_fails("call extend(a:, {'this_is_a_long_parameter_name': 1234})", 'E742') | 511 call assert_fails("call extend(a:, {'this_is_a_long_parameter_name': 1234})", 'E742') |
512 endfunc | 512 endfunc |
513 func Test_dict_scope_var_extend() | 513 func Test_dict_scope_var_extend() |
514 call Tfunc('testval') | 514 call Tfunc2('testval') |
515 endfunc | 515 endfunc |
516 | 516 |
517 " No :unlet of variable in locked scope | 517 " No :unlet of variable in locked scope |
518 func Test_lock_var_unlet() | 518 func Test_lock_var_unlet() |
519 let b:testvar = 123 | 519 let b:testvar = 123 |