From 76e42284e94ebb688007233b30eee187efa7e2aa Mon Sep 17 00:00:00 2001 From: kazukazuinaina Date: Mon, 3 May 2021 08:31:25 +0200 Subject: [PATCH] tests: add some more tests for g:airline_section vars closes #2370 --- t/init.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/t/init.vim b/t/init.vim index 14389eec..f6b8734a 100644 --- a/t/init.vim +++ b/t/init.vim @@ -55,6 +55,15 @@ describe 'init sections' Expect g:airline_section_z =~ '%v' end + it 'section gutter should be blank unless csv extension is installed' + " Note: the csv extension uses only the window local variable + Expect g:airline_section_gutter =~ '%=' + end + + it 'section warning should be blank' + Expect g:airline_section_warning =~ '' + end + it 'should not redefine sections already defined' for s in s:sections let g:airline_section_{s} = s