neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit cf68c82598f02484048eb6ac299f0b961596c591
parent 77d396caf4097228830e7e4c7f318f22da8892e0
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 16 Feb 2026 08:24:19 +0800

test(old): restore test coverage for invalid 'statusline' flag

Diffstat:
Mtest/old/testdir/gen_opt_test.vim | 4++--
Mtest/old/testdir/test_options.vim | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim @@ -336,13 +336,13 @@ let test_values = { \ 'timeout:-1', 'file:/tmp/file', 'expr:Func()', 'double,33'], \ ['xxx', '-1', 'timeout:', 'best,double', 'double,fast']], \ 'splitkeep': [['cursor', 'screen', 'topline'], ['xxx']], - \ 'statusline': [['', 'xxx'], ['%{', '%{%', '%{%}', '%(', '%)']], + \ 'statusline': [['', 'xxx'], ['%^', '%{', '%{%', '%{%}', '%(', '%)']], "\ 'swapsync': [['', 'sync', 'fsync'], ['xxx']], \ 'switchbuf': [['', 'useopen', 'usetab', 'split', 'vsplit', 'newtab', \ 'uselast', 'split,newtab'], \ ['xxx']], \ 'tabclose': [['', 'left', 'uselast', 'left,uselast'], ['xxx']], - \ 'tabline': [['', 'xxx'], ['%{', '%{%', '%{%}', '%(', '%)']], + \ 'tabline': [['', 'xxx'], ['%^', '%{', '%{%', '%{%}', '%(', '%)']], \ 'tagcase': [['followic', 'followscs', 'ignore', 'match', 'smart'], \ ['', 'xxx', 'smart,match']], \ 'termencoding': [has('gui_gtk') ? [] : ['', 'utf-8'], ['xxx']], diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim @@ -866,6 +866,7 @@ func Test_set_option_errors() call assert_fails('set rulerformat=%15(%%', 'E542:') " Test for 'statusline' errors + call assert_fails('set statusline=%^', 'E539:') " Nvim: supports %$ call assert_fails('set statusline=%{', 'E540:') call assert_fails('set statusline=%{%', 'E540:') call assert_fails('set statusline=%{%}', 'E539:') @@ -873,6 +874,7 @@ func Test_set_option_errors() call assert_fails('set statusline=%)', 'E542:') " Test for 'tabline' errors + call assert_fails('set tabline=%^', 'E539:') " Nvim: supports %$ call assert_fails('set tabline=%{', 'E540:') call assert_fails('set tabline=%{%', 'E540:') call assert_fails('set tabline=%{%}', 'E539:')