1
0
forked from aniani/vim

patch 9.0.0650: some tests are failing

Problem:    Some tests are failing.
Solution:   Adjust for "<<<" showing up.
This commit is contained in:
Bram Moolenaar
2022-10-03 17:07:34 +01:00
parent 406b5d89e1
commit 0466d398a5
6 changed files with 17 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ func Test_breakindent02_vartabs()
CheckFeature vartabs CheckFeature vartabs
" simple breakindent test with showbreak set " simple breakindent test with showbreak set
call s:test_windows('setl briopt=min:0 sbr=>> vts=4') 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 = [ let expect = [
\ " abcd", \ " abcd",
\ " >>qr", \ " >>qr",
@@ -96,7 +96,7 @@ endfunc
func Test_breakindent03() func Test_breakindent03()
" simple breakindent test with showbreak set and briopt including sbr " simple breakindent test with showbreak set and briopt including sbr
call s:test_windows('setl briopt=sbr,min:0 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 = [ let expect = [
\ " abcd", \ " abcd",
\ "++ qrst", \ "++ qrst",
@@ -111,7 +111,7 @@ func Test_breakindent03_vartabs()
" simple breakindent test with showbreak set and briopt including sbr " simple breakindent test with showbreak set and briopt including sbr
CheckFeature vartabs CheckFeature vartabs
call s:test_windows('setl briopt=sbr,min:0 sbr=++ vts=4') 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 = [ let expect = [
\ " abcd", \ " abcd",
\ "++ qrst", \ "++ qrst",
@@ -126,7 +126,7 @@ func Test_breakindent04()
" breakindent set with min width 18 " breakindent set with min width 18
set sbr=<<< set sbr=<<<
call s:test_windows('setl sbr=NONE briopt=min:18') 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 = [ let expect = [
\ " abcd", \ " abcd",
\ " qrstuv", \ " qrstuv",
@@ -142,7 +142,7 @@ func Test_breakindent04_vartabs()
" breakindent set with min width 18 " breakindent set with min width 18
CheckFeature vartabs CheckFeature vartabs
call s:test_windows('setl sbr= briopt=min:18 vts=4') 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 = [ let expect = [
\ " abcd", \ " abcd",
\ " qrstuv", \ " qrstuv",
@@ -549,7 +549,7 @@ func Test_breakindent16()
redraw! redraw!
let lines = s:screen_lines(1,10) let lines = s:screen_lines(1,10)
let expect = [ let expect = [
\ " 789012", \ "<<< 789012",
\ " 345678", \ " 345678",
\ " 901234", \ " 901234",
\ ] \ ]
@@ -575,7 +575,7 @@ func Test_breakindent16_vartabs()
redraw! redraw!
let lines = s:screen_lines(1,10) let lines = s:screen_lines(1,10)
let expect = [ let expect = [
\ " 789012", \ "<<< 789012",
\ " 345678", \ " 345678",
\ " 901234", \ " 901234",
\ ] \ ]
@@ -660,7 +660,7 @@ func Test_breakindent19_sbr_nextpage()
norm! 5gj norm! 5gj
let lines = s:screen_lines(1, 20) let lines = s:screen_lines(1, 20)
let expect = [ let expect = [
\ ">aaaaaaaaaaaaaaaaaaa", \ "<<<aaaaaaaaaaaaaaaaa",
\ ">aaaaaaaaaaaaaaaaaaa", \ ">aaaaaaaaaaaaaaaaaaa",
\ ">aaaaaaaaaaaaaaaaaaa", \ ">aaaaaaaaaaaaaaaaaaa",
\ ] \ ]
@@ -687,7 +687,7 @@ func Test_breakindent20_cpo_n_nextpage()
redraw! redraw!
let lines = s:screen_lines(1, 20) let lines = s:screen_lines(1, 20)
let expect = [ let expect = [
\ "--1 aaaaaaaaaaaaaaaa", \ "<<< aaaaaaaaaaaaaaaa",
\ " aaaaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaaaa",
\ " aaaaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaaaa",
\ ] \ ]
@@ -706,7 +706,7 @@ func Test_breakindent20_cpo_n_nextpage()
norm! 5gj norm! 5gj
let lines = s:screen_lines(1, 20) let lines = s:screen_lines(1, 20)
let expect = [ let expect = [
\ "--1 aaaaaaaaaaaaaa", \ "<<< aaaaaaaaaaaaaa",
\ " aaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaa",
\ " aaaaaaaaaaaaaa", \ " aaaaaaaaaaaaaa",
\ ] \ ]

View File

@@ -143,7 +143,7 @@ func Test_display_listchars_precedes()
let lines = ScreenLines([1,10], winwidth(0)+1) let lines = ScreenLines([1,10], winwidth(0)+1)
let expect = [ let expect = [
\ "<aaa aaa a|", \ "<<<a aaa a|",
\ "a aaa aaa |", \ "a aaa aaa |",
\ "aa aaa aaa|", \ "aa aaa aaa|",
\ " aa aaa aa|", \ " aa aaa aa|",

View File

@@ -159,7 +159,7 @@ func Test_virtual_block_and_vbA()
exe "norm! $3B\<C-v>eAx\<Esc>" exe "norm! $3B\<C-v>eAx\<Esc>"
let lines = s:screen_lines([1, 10], winwidth(0)) let lines = s:screen_lines([1, 10], winwidth(0))
let expect = [ let expect = [
\ "foobar foobar ", \ "<<<bar foobar ",
\ "foobar foobar ", \ "foobar foobar ",
\ "foobar foobar ", \ "foobar foobar ",
\ "foobar foobar ", \ "foobar foobar ",

View File

@@ -167,7 +167,7 @@ func Test_visual_block_and_selection_exclusive()
exe "norm! $3B\<C-v>eAx\<Esc>" exe "norm! $3B\<C-v>eAx\<Esc>"
let lines = s:screen_lines([1, 10], winwidth(0)) let lines = s:screen_lines([1, 10], winwidth(0))
let expect = [ let expect = [
\ "+foobar foobar ", \ "<<<obar foobar ",
\ "+foobar foobar ", \ "+foobar foobar ",
\ "+foobar foobar ", \ "+foobar foobar ",
\ "+foobar foobar ", \ "+foobar foobar ",
@@ -266,7 +266,7 @@ func Test_chinese_char_on_wrap_column()
norm! $ norm! $
redraw! redraw!
let expect=[ let expect=[
\ '中aaaaaaaaaaaaaaaaa>', \ '<<<aaaaaaaaaaaaaaaa>',
\ '中aaaaaaaaaaaaaaaaa>', \ '中aaaaaaaaaaaaaaaaa>',
\ '中aaaaaaaaaaaaaaaaa>', \ '中aaaaaaaaaaaaaaaaa>',
\ '中aaaaaaaaaaaaaaaaa>', \ '中aaaaaaaaaaaaaaaaa>',

View File

@@ -138,7 +138,7 @@ func Test_number_with_linewrap1()
call s:validate_cursor() call s:validate_cursor()
let lines = s:screen_lines(1, 3) let lines = s:screen_lines(1, 3)
let expect = [ let expect = [
\ "--1 aaaa", \ "<<< aaaa",
\ " aaaa", \ " aaaa",
\ " aaaa", \ " aaaa",
\ ] \ ]

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
650,
/**/ /**/
649, 649,
/**/ /**/