Mercurial > vim
comparison src/testdir/test_expr.vim @ 24695:13efbfc53054 v8.2.2886
patch 8.2.2886: various pieces of code not covered by tests
Commit: https://github.com/vim/vim/commit/34fcb697240c1bc9e69417ed75db3b1a83479724
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue May 25 20:14:00 2021 +0200
patch 8.2.2886: various pieces of code not covered by tests
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8255)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 May 2021 20:15:03 +0200 |
parents | f74978697fb6 |
children | c07b6c54146a |
comparison
equal
deleted
inserted
replaced
24694:44426ac4b715 | 24695:13efbfc53054 |
---|---|
125 call assert_equal([], getreg('x', 1, 1)) | 125 call assert_equal([], getreg('x', 1, 1)) |
126 let x = getreg('x', 1, 1) | 126 let x = getreg('x', 1, 1) |
127 let y = x | 127 let y = x |
128 call add(x, 'foo') | 128 call add(x, 'foo') |
129 call assert_equal(['foo'], y) | 129 call assert_equal(['foo'], y) |
130 call assert_fails('call getreg([])', 'E730:') | |
130 endfunc | 131 endfunc |
131 | 132 |
132 func Test_loop_over_null_list() | 133 func Test_loop_over_null_list() |
133 let null_list = test_null_list() | 134 let null_list = test_null_list() |
134 for i in null_list | 135 for i in null_list |