diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-23 18:12:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-23 18:12:28 +0800 |
| commit | df4709ddf6d1ed524adae9373ecb762b9db11814 (patch) | |
| tree | d65ac06e9560138c20f09d6f8269b4d9e2d29713 /src/nvim/testdir/test_excmd.vim | |
| parent | 42e9fe7d958e0ba025034c330d8e29293d828b60 (diff) | |
| parent | d459b6687704b7d1f230d0b14c0d59f87cf5f67d (diff) | |
| download | rneovim-df4709ddf6d1ed524adae9373ecb762b9db11814.tar.gz rneovim-df4709ddf6d1ed524adae9373ecb762b9db11814.tar.bz2 rneovim-df4709ddf6d1ed524adae9373ecb762b9db11814.zip | |
Merge pull request #19905 from zeertzjq/vim-8.2.4726
vim-patch:8.2.{4726,4740,4741,4749,4841,4842}: expand('<script>')
Diffstat (limited to 'src/nvim/testdir/test_excmd.vim')
| -rw-r--r-- | src/nvim/testdir/test_excmd.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim index dac7a6989d..9a9e5c546b 100644 --- a/src/nvim/testdir/test_excmd.vim +++ b/src/nvim/testdir/test_excmd.vim @@ -568,10 +568,12 @@ endfunc " Test for the :verbose command func Test_verbose_cmd() - call assert_equal([' verbose=1'], split(execute('verbose set vbs'), "\n")) + set verbose=3 + call assert_match(' verbose=1\n\s*Last set from ', execute('verbose set vbs'), "\n") call assert_equal([' verbose=0'], split(execute('0verbose set vbs'), "\n")) - let l = execute("4verbose set verbose | set verbose") - call assert_equal([' verbose=4', ' verbose=0'], split(l, "\n")) + set verbose=0 + call assert_match(' verbose=4\n\s*Last set from .*\n verbose=0', + \ execute("4verbose set verbose | set verbose")) endfunc " Test for the :delete command and the related abbreviated commands |