]> granicus.if.org Git - vim/commitdiff
patch 7.4.2333 v7.4.2333
authorBram Moolenaar <Bram@vim.org>
Mon, 5 Sep 2016 20:58:31 +0000 (22:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Sep 2016 20:58:31 +0000 (22:58 +0200)
Problem:    Outdated comments in test.
Solution:   Cleanup normal mode test. (Christian Brabandt)

src/testdir/test_normal.vim
src/version.c

index 34561ffbabbf0941c4d0c986b40d4cd2cb523d05..9a8f8f83be3c0b9f386db960619d23f5c6460aa3 100644 (file)
@@ -36,47 +36,14 @@ function! CountSpaces(type, ...)
 endfunction
 
 fun! Test_normal00_optrans()
-  " Attention: This needs to be the very first test,
-  " it will fail, if it runs later, don't know why!
-  " Test for S s and alike comamnds, that are internally handled aliased
   new
   call append(0, ['1 This is a simple test: abcd', '2 This is the second line', '3 this is the third line'])
   1
   exe "norm! Sfoobar\<esc>"
   call assert_equal(['foobar', '2 This is the second line', '3 this is the third line', ''], getline(1,'$'))
   2
-  " Test does not work
-  " TODO: Why does it not work?
-  " Adds an additional linebreak if used in visual mode...
-  " When run in the test, this returns:
-  " ,--------
-  " |foobar
-  " |2 This is
-  " |the second
-  " |one
-  " |3 this is the third line
-  " `-----------
-  " instead of
-  " ,--------
-  " |foobar
-  " |2 This is the second one
-  " |3 this is the third line
-  " `-----------
   exe "norm! $vbsone"
   call assert_equal(['foobar', '2 This is the second one', '3 this is the third line', ''], getline(1,'$'))
-  " When run in the test, this returns:
-  " ,--------
-  " |foobar
-  " |Second line
-  " |here
-  " |3 this is the third line
-  " `-----------
-  " instead of
-  " ,--------
-  " |foobar
-  " |Second line here
-  " |3 this is the third line
-  " `-----------
   norm! VS Second line here
   call assert_equal(['foobar', ' Second line here', '3 this is the third line', ''], getline(1, '$'))
   %d
@@ -248,7 +215,7 @@ func! Test_normal07_internalfmt()
   norm! gggqG
   call assert_equal(['1    2    3', '4    5    6', '7    8    9', '10    11    '], getline(1, '$'))
   " clean up
-  set formatprg=
+  set formatprg= tw=0
   bw!
 endfu
 
@@ -1719,7 +1686,7 @@ fun! Test_normal35_g_cmd4()
   " Test for g<
   " Cannot capture its output,
   " probably a bug, therefore, test disabled:
-  return
+  throw "Skipped: output of g< can't be tested currently"
   echo "a\nb\nc\nd"
   let b=execute(':norm! g<')
   call assert_true(!empty(b), 'failed `execute(g<)`')
@@ -1877,7 +1844,7 @@ fun! Test_normal41_insert_reg()
 
   " clean up
   set sts=0 sw=8 ts=8
-  "bw!
+  bw!
 endfu
 
 func! Test_normal42_halfpage()
index 98b722562806d0b295823905626ab1d69760cf31..fda0bf91e20577f8c4e00dfbe4cff3a2f83cd903 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2333,
 /**/
     2332,
 /**/