Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 28305:c4b2aa8e1ee1 v8.2.4678
patch 8.2.4678: Vim9: not all code is tested
Commit: https://github.com/vim/vim/commit/1061195057c4518877cb6da7591eadff9db14598
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 3 21:11:34 2022 +0100
patch 8.2.4678: Vim9: not all code is tested
Problem: Vim9: not all code is tested.
Solution: Add a few more tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Apr 2022 22:15:04 +0200 |
parents | bd1dcc605e58 |
children | b418e073b42f |
comparison
equal
deleted
inserted
replaced
28304:8462f16d2e7f | 28305:c4b2aa8e1ee1 |
---|---|
1536 assert_match('E1121:', ex) | 1536 assert_match('E1121:', ex) |
1537 unlockvar d['a'] | 1537 unlockvar d['a'] |
1538 d.a = 7 | 1538 d.a = 7 |
1539 assert_equal({a: 7, b: 5}, d) | 1539 assert_equal({a: 7, b: 5}, d) |
1540 | 1540 |
1541 caught = false | |
1542 try | |
1543 lockvar d.c | |
1544 catch /E716/ | |
1545 caught = true | |
1546 endtry | |
1547 assert_true(caught) | |
1548 | |
1541 var lines =<< trim END | 1549 var lines =<< trim END |
1542 vim9script | 1550 vim9script |
1543 g:bl = 0z1122 | 1551 g:bl = 0z1122 |
1544 lockvar g:bl | 1552 lockvar g:bl |
1545 def Tryit() | 1553 def Tryit() |