From 0466d398a550623126fba3a2a08208a798b28bda Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 3 Oct 2022 17:07:34 +0100 Subject: [PATCH] patch 9.0.0650: some tests are failing Problem: Some tests are failing. Solution: Adjust for "<<<" showing up. --- src/testdir/test_breakindent.vim | 20 ++++++++++---------- src/testdir/test_display.vim | 2 +- src/testdir/test_listlbr.vim | 2 +- src/testdir/test_listlbr_utf8.vim | 4 ++-- src/testdir/test_number.vim | 2 +- src/version.c | 2 ++ 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index f052fb7be..5ac88a055 100644 --- a/src/testdir/test_breakindent.vim +++ b/src/testdir/test_breakindent.vim @@ -83,7 +83,7 @@ func Test_breakindent02_vartabs() CheckFeature vartabs " simple breakindent test with showbreak set call s:test_windows('setl briopt=min:0 sbr=>> vts=4') - let lines = s:screen_lines(line('.'),8) + let lines = s:screen_lines(line('.'), 8) let expect = [ \ " abcd", \ " >>qr", @@ -96,7 +96,7 @@ endfunc func Test_breakindent03() " simple breakindent test with showbreak set and briopt including sbr call s:test_windows('setl briopt=sbr,min:0 sbr=++') - let lines = s:screen_lines(line('.'),8) + let lines = s:screen_lines(line('.'), 8) let expect = [ \ " abcd", \ "++ qrst", @@ -111,7 +111,7 @@ func Test_breakindent03_vartabs() " simple breakindent test with showbreak set and briopt including sbr CheckFeature vartabs call s:test_windows('setl briopt=sbr,min:0 sbr=++ vts=4') - let lines = s:screen_lines(line('.'),8) + let lines = s:screen_lines(line('.'), 8) let expect = [ \ " abcd", \ "++ qrst", @@ -126,7 +126,7 @@ func Test_breakindent04() " breakindent set with min width 18 set sbr=<<< call s:test_windows('setl sbr=NONE briopt=min:18') - let lines = s:screen_lines(line('.'),8) + let lines = s:screen_lines(line('.'), 8) let expect = [ \ " abcd", \ " qrstuv", @@ -142,7 +142,7 @@ func Test_breakindent04_vartabs() " breakindent set with min width 18 CheckFeature vartabs call s:test_windows('setl sbr= briopt=min:18 vts=4') - let lines = s:screen_lines(line('.'),8) + let lines = s:screen_lines(line('.'), 8) let expect = [ \ " abcd", \ " qrstuv", @@ -549,7 +549,7 @@ func Test_breakindent16() redraw! let lines = s:screen_lines(1,10) let expect = [ - \ " 789012", + \ "<<< 789012", \ " 345678", \ " 901234", \ ] @@ -575,7 +575,7 @@ func Test_breakindent16_vartabs() redraw! let lines = s:screen_lines(1,10) let expect = [ - \ " 789012", + \ "<<< 789012", \ " 345678", \ " 901234", \ ] @@ -660,7 +660,7 @@ func Test_breakindent19_sbr_nextpage() norm! 5gj let lines = s:screen_lines(1, 20) let expect = [ - \ ">aaaaaaaaaaaaaaaaaaa", + \ "<<aaaaaaaaaaaaaaaaaaa", \ ">aaaaaaaaaaaaaaaaaaa", \ ] @@ -687,7 +687,7 @@ func Test_breakindent20_cpo_n_nextpage() redraw! let lines = s:screen_lines(1, 20) let expect = [ - \ "--1 aaaaaaaaaaaaaaaa", + \ "<<< aaaaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaaaa", \ ] @@ -706,7 +706,7 @@ func Test_breakindent20_cpo_n_nextpage() norm! 5gj let lines = s:screen_lines(1, 20) let expect = [ - \ "--1 aaaaaaaaaaaaaa", + \ "<<< aaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaa", \ ] diff --git a/src/testdir/test_display.vim b/src/testdir/test_display.vim index af18b7ee9..7237ed8a2 100644 --- a/src/testdir/test_display.vim +++ b/src/testdir/test_display.vim @@ -143,7 +143,7 @@ func Test_display_listchars_precedes() let lines = ScreenLines([1,10], winwidth(0)+1) let expect = [ - \ "eAx\" let lines = s:screen_lines([1, 10], winwidth(0)) let expect = [ -\ "foobar foobar ", +\ "<<eAx\" let lines = s:screen_lines([1, 10], winwidth(0)) let expect = [ -\ "+foobar foobar ", +\ "<<', +\ '<<', \ '中aaaaaaaaaaaaaaaaa>', \ '中aaaaaaaaaaaaaaaaa>', \ '中aaaaaaaaaaaaaaaaa>', diff --git a/src/testdir/test_number.vim b/src/testdir/test_number.vim index e85457685..81f8f7301 100644 --- a/src/testdir/test_number.vim +++ b/src/testdir/test_number.vim @@ -138,7 +138,7 @@ func Test_number_with_linewrap1() call s:validate_cursor() let lines = s:screen_lines(1, 3) let expect = [ -\ "--1 aaaa", +\ "<<< aaaa", \ " aaaa", \ " aaaa", \ ] diff --git a/src/version.c b/src/version.c index 24ca413c8..000c1e3d4 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 650, /**/ 649, /**/ -- 2.40.0