Mercurial > vim
comparison src/testdir/test_listdict.vim @ 20136:fdf94ab9929b v8.2.0623
patch 8.2.0623: typo in test comment
Commit: https://github.com/vim/vim/commit/f7b398c6a9476a2004a42555b731ebf47b866408
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 23 15:46:35 2020 +0200
patch 8.2.0623: typo in test comment
Problem: Typo in test comment. (Christ van Willegen)
Solution: Avoid mixing up a data structure with a body part.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Apr 2020 16:15:05 +0200 |
parents | 0b35a7ffceb2 |
children | 49694eceaa55 |
comparison
equal
deleted
inserted
replaced
20135:571f632f0aa2 | 20136:fdf94ab9929b |
---|---|
545 lockvar d.a | 545 lockvar d.a |
546 call assert_fails("call extend(d, {'a' : 123})", 'E741') | 546 call assert_fails("call extend(d, {'a' : 123})", 'E741') |
547 call assert_equal({'a': 99, 'b': 100}, d) | 547 call assert_equal({'a': 99, 'b': 100}, d) |
548 endfunc | 548 endfunc |
549 | 549 |
550 " Cannot use += with a locked dick | 550 " Cannot use += with a locked dict |
551 func Test_dict_lock_operator() | 551 func Test_dict_lock_operator() |
552 unlet! d | 552 unlet! d |
553 let d = {} | 553 let d = {} |
554 lockvar d | 554 lockvar d |
555 call assert_fails("let d += {'k' : 10}", 'E741:') | 555 call assert_fails("let d += {'k' : 10}", 'E741:') |