diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-25 10:38:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-25 10:43:08 +0800 |
commit | 0d6e1273d6e39c1102d5ee77e778a1d2d42a4fa0 (patch) | |
tree | 030e438642556606dce3654be982c4db08808af6 /src/nvim/testdir/test_expr.vim | |
parent | 5bdd787a7a2274d802479498ccd1d1f0c4fc589b (diff) | |
download | rneovim-0d6e1273d6e39c1102d5ee77e778a1d2d42a4fa0.tar.gz rneovim-0d6e1273d6e39c1102d5ee77e778a1d2d42a4fa0.tar.bz2 rneovim-0d6e1273d6e39c1102d5ee77e778a1d2d42a4fa0.zip |
vim-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 vim/vim#8255)
https://github.com/vim/vim/commit/34fcb697240c1bc9e69417ed75db3b1a83479724
Nvim does not have test_unknown().
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
-rw-r--r-- | src/nvim/testdir/test_expr.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim index 9dbc923b96..f33358c59a 100644 --- a/src/nvim/testdir/test_expr.vim +++ b/src/nvim/testdir/test_expr.vim @@ -92,10 +92,11 @@ func Test_getreg_empty_list() let y = x call add(x, 'foo') call assert_equal(['foo'], y) + call assert_fails('call getreg([])', 'E730:') endfunc func Test_loop_over_null_list() - let null_list = submatch(1, 1) + let null_list = v:_null_list for i in null_list call assert_report('should not get here') endfor |