diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-28 15:46:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-28 15:46:16 +0200 |
commit | b2ac7d0663ef31a335c50c6afca042ed9ace5059 (patch) | |
tree | e0fe993690e2988d719b7fff79d7bef0679420e2 /src/testdir | |
parent | df749a2b9cab579b8c0ca6ca91889aa03d2da704 (diff) |
patch 8.2.2670: Vim9: error for append(0, text)v8.2.2670
Problem: Vim9: error for append(0, text).
Solution: Check for negative number. (closes #8022)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 73251c0bac..8f112174e5 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -123,6 +123,10 @@ def Test_append() var res2: bool = append(3, 'two') assert_equal(false, res2) assert_equal(['0', 'one', '1', 'two', '2'], getline(1, 6)) + + append(0, 'zero') + assert_equal('zero', getline(1)) + bwipe! enddef def Test_balloon_show() |