diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-12 21:33:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 21:33:24 +0800 |
commit | 564d2d20a3734a00ddd3e8ea92ba0bc53e9558ff (patch) | |
tree | d6c0244b07f908a2f41917a0213a14dc44d3d3bd /test | |
parent | 0eb02ea90a5a7c2e35bfcf99b701a28ff2901b4b (diff) | |
parent | d86acfa149c0d91d4880dd124039f3fc983ebe4c (diff) | |
download | rneovim-564d2d20a3734a00ddd3e8ea92ba0bc53e9558ff.tar.gz rneovim-564d2d20a3734a00ddd3e8ea92ba0bc53e9558ff.tar.bz2 rneovim-564d2d20a3734a00ddd3e8ea92ba0bc53e9558ff.zip |
Merge pull request #24000 from zeertzjq/vim-8.2.3332
vim-patch:8.2.{3332,3338}
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_listdict.vim | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/test/old/testdir/test_listdict.vim b/test/old/testdir/test_listdict.vim index 07a365d337..1fc0c1e7d4 100644 --- a/test/old/testdir/test_listdict.vim +++ b/test/old/testdir/test_listdict.vim @@ -178,11 +178,20 @@ endfunc " test for range assign func Test_list_range_assign() - let l = [0] - let l[:] = [1, 2] - call assert_equal([1, 2], l) - let l[-4:-1] = [5, 6] - call assert_equal([5, 6], l) + let lines =<< trim END + VAR l = [0] + LET l[:] = [1, 2] + call assert_equal([1, 2], l) + LET l[-4 : -1] = [5, 6] + call assert_equal([5, 6], l) + END + call CheckLegacyAndVim9Success(lines) + + let lines =<< trim END + var l = [7] + l[:] = ['text'] + END + call CheckDefAndScriptFailure(lines, 'E1012:', 2) endfunc " Test removing items in list |