Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 27762:3196066c5795 v8.2.4407
patch 8.2.4407: Vim9: some code not covered by tests
Commit: https://github.com/vim/vim/commit/e08be09a08485e8c919f46c05223c1ccfdaf175d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 17 13:08:26 2022 +0000
patch 8.2.4407: Vim9: some code not covered by tests
Problem: Vim9: some code not covered by tests.
Solution: Add more tests. Avoid giving two errors. Remove dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Feb 2022 14:15:04 +0100 |
parents | d754ac2f5ac5 |
children | b081ba78675a |
comparison
equal
deleted
inserted
replaced
27761:a5c8bf8758c7 | 27762:3196066c5795 |
---|---|
1527 d.a = 7 | 1527 d.a = 7 |
1528 assert_equal({a: 7, b: 5}, d) | 1528 assert_equal({a: 7, b: 5}, d) |
1529 | 1529 |
1530 var lines =<< trim END | 1530 var lines =<< trim END |
1531 vim9script | 1531 vim9script |
1532 g:bl = 0z1122 | |
1533 lockvar g:bl | |
1534 def Tryit() | |
1535 g:bl[1] = 99 | |
1536 enddef | |
1537 Tryit() | |
1538 END | |
1539 v9.CheckScriptFailure(lines, 'E741:', 1) | |
1540 | |
1541 lines =<< trim END | |
1542 vim9script | |
1532 var theList = [1, 2, 3] | 1543 var theList = [1, 2, 3] |
1533 def SetList() | 1544 def SetList() |
1534 theList[1] = 22 | 1545 theList[1] = 22 |
1535 assert_equal([1, 22, 3], theList) | 1546 assert_equal([1, 22, 3], theList) |
1536 lockvar theList | 1547 lockvar theList |