diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 11:14:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-15 11:14:22 +0800 |
| commit | 9777907467b29e890556db287b6a9995c0024896 (patch) | |
| tree | d57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_substitute.vim | |
| parent | 73f96ce4c638179abb0bd5a9dc48a6a1d0f3a5bd (diff) | |
| parent | 465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (diff) | |
| download | rneovim-9777907467b29e890556db287b6a9995c0024896.tar.gz rneovim-9777907467b29e890556db287b6a9995c0024896.tar.bz2 rneovim-9777907467b29e890556db287b6a9995c0024896.zip | |
Merge pull request #19369 from zeertzjq/vim-8.2.0482
vim-patch:8.2.{0430,0482}: insufficient tests
Diffstat (limited to 'src/nvim/testdir/test_substitute.vim')
| -rw-r--r-- | src/nvim/testdir/test_substitute.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_substitute.vim b/src/nvim/testdir/test_substitute.vim index 9a1144b8e4..f795d1c0cf 100644 --- a/src/nvim/testdir/test_substitute.vim +++ b/src/nvim/testdir/test_substitute.vim @@ -839,6 +839,10 @@ func Test_sub_with_no_last_pat() call delete('Xresult') endfunc +func Test_substitute() + call assert_equal('a1a2a3a', substitute('123', '\zs', 'a', 'g')) +endfunc + func Test_submatch_list_concatenate() let pat = 'A\(.\)' let Rep = {-> string([submatch(0, 1)] + [[submatch(1)]])} |