Skip to content

Commit 3184509

Browse files
committed
patch 7.4.2333
Problem: Outdated comments in test. Solution: Cleanup normal mode test. (Christian Brabandt)
1 parent 75537a9 commit 3184509

2 files changed

Lines changed: 5 additions & 36 deletions

File tree

src/testdir/test_normal.vim

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,47 +36,14 @@ function! CountSpaces(type, ...)
3636
endfunction
3737

3838
fun! Test_normal00_optrans()
39-
" Attention: This needs to be the very first test,
40-
" it will fail, if it runs later, don't know why!
41-
" Test for S s and alike comamnds, that are internally handled aliased
4239
new
4340
call append(0, ['1 This is a simple test: abcd', '2 This is the second line', '3 this is the third line'])
4441
1
4542
exe "norm! Sfoobar\<esc>"
4643
call assert_equal(['foobar', '2 This is the second line', '3 this is the third line', ''], getline(1,'$'))
4744
2
48-
" Test does not work
49-
" TODO: Why does it not work?
50-
" Adds an additional linebreak if used in visual mode...
51-
" When run in the test, this returns:
52-
" ,--------
53-
" |foobar
54-
" |2 This is
55-
" |the second
56-
" |one
57-
" |3 this is the third line
58-
" `-----------
59-
" instead of
60-
" ,--------
61-
" |foobar
62-
" |2 This is the second one
63-
" |3 this is the third line
64-
" `-----------
6545
exe "norm! $vbsone"
6646
call assert_equal(['foobar', '2 This is the second one', '3 this is the third line', ''], getline(1,'$'))
67-
" When run in the test, this returns:
68-
" ,--------
69-
" |foobar
70-
" |Second line
71-
" |here
72-
" |3 this is the third line
73-
" `-----------
74-
" instead of
75-
" ,--------
76-
" |foobar
77-
" |Second line here
78-
" |3 this is the third line
79-
" `-----------
8047
norm! VS Second line here
8148
call assert_equal(['foobar', ' Second line here', '3 this is the third line', ''], getline(1, '$'))
8249
%d
@@ -248,7 +215,7 @@ func! Test_normal07_internalfmt()
248215
norm! gggqG
249216
call assert_equal(['1 2 3', '4 5 6', '7 8 9', '10 11 '], getline(1, '$'))
250217
" clean up
251-
set formatprg=
218+
set formatprg= tw=0
252219
bw!
253220
endfu
254221

@@ -1719,7 +1686,7 @@ fun! Test_normal35_g_cmd4()
17191686
" Test for g<
17201687
" Cannot capture its output,
17211688
" probably a bug, therefore, test disabled:
1722-
return
1689+
throw "Skipped: output of g< can't be tested currently"
17231690
echo "a\nb\nc\nd"
17241691
let b=execute(':norm! g<')
17251692
call assert_true(!empty(b), 'failed `execute(g<)`')
@@ -1877,7 +1844,7 @@ fun! Test_normal41_insert_reg()
18771844

18781845
" clean up
18791846
set sts=0 sw=8 ts=8
1880-
"bw!
1847+
bw!
18811848
endfu
18821849

18831850
func! Test_normal42_halfpage()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2333,
766768
/**/
767769
2332,
768770
/**/

0 commit comments

Comments
 (0)