diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-18 06:13:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 06:13:37 +0800 |
commit | 7dcbe74234cae6192d11c25dbcd801d35e604eb0 (patch) | |
tree | 4d6b898cb67d3d1aec5d3cd49acdb0be7be07ada /test | |
parent | 88887a7be707773f908dd6e597f0293d3c1a0faa (diff) | |
parent | bb29ef40084e1cea1f35cbbcbac794f41f46d5f8 (diff) | |
download | rneovim-7dcbe74234cae6192d11c25dbcd801d35e604eb0.tar.gz rneovim-7dcbe74234cae6192d11c25dbcd801d35e604eb0.tar.bz2 rneovim-7dcbe74234cae6192d11c25dbcd801d35e604eb0.zip |
Merge pull request #24766 from zeertzjq/vim-9.0.1722
vim-patch:9.0.{1722,1723}
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_functions.vim | 3 | ||||
-rw-r--r-- | test/old/testdir/test_listdict.vim | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 74f9143ca0..e286090018 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -1627,7 +1627,8 @@ func Test_count() call assert_equal(2, count("fooooo", "oo")) call assert_equal(0, count("foo", "")) - call assert_fails('call count(0, 0)', 'E712:') + call assert_fails('call count(0, 0)', 'E706:') + call assert_fails('call count("", "", {})', ['E728:', 'E728:']) endfunc func Test_changenr() diff --git a/test/old/testdir/test_listdict.vim b/test/old/testdir/test_listdict.vim index abb7f88a7b..354d987c79 100644 --- a/test/old/testdir/test_listdict.vim +++ b/test/old/testdir/test_listdict.vim @@ -944,6 +944,10 @@ func Test_reduce() call assert_equal('Å,s,t,r,ö,m', reduce('Åström', LSTART acc, val LMIDDLE acc .. ',' .. val LEND)) call assert_equal('Å,s,t,r,ö,m', reduce('Åström', LSTART acc, val LMIDDLE acc .. ',' .. val LEND)) call assert_equal(',a,b,c', reduce('abc', LSTART acc, val LMIDDLE acc .. ',' .. val LEND, v:_null_string)) + + call assert_equal(0x7d, reduce([0x30, 0x25, 0x08, 0x61], 'or')) + call assert_equal(0x7d, reduce(0z30250861, 'or')) + call assert_equal('β', reduce('ββββ', 'matchstr')) END call CheckLegacyAndVim9Success(lines) @@ -958,7 +962,7 @@ func Test_reduce() call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E1098:') call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E1098:') - call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E121:') + call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:') call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 'E1210:') " call assert_fails("vim9 reduce(0, (acc, val) => (acc .. val), '')", 'E1252:') |