changeset 11434:b3815e491811 v8.0.0601

patch 8.0.0601: no test coverage for :spellrepall commit https://github.com/vim/vim/commit/545cb79da586be3333a0a55616046f94b01f6b1a Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 23 11:31:22 2017 +0200 patch 8.0.0601: no test coverage for :spellrepall Problem: No test coverage for :spellrepall. Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/1717)
author Christian Brabandt <cb@256bit.org>
date Tue, 23 May 2017 11:45:03 +0200
parents defbf8bfc6f6
children e97a062b6065
files src/testdir/test_spell.vim src/version.c
diffstat 2 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_spell.vim
+++ b/src/testdir/test_spell.vim
@@ -27,3 +27,20 @@ func Test_z_equal_on_invalid_utf8_word()
   set nospell
   bwipe!
 endfunc
+
+func Test_spellreall()
+  new
+  set spell
+  call assert_fails('spellrepall', 'E752:')
+  call setline(1, ['A speling mistake. The same speling mistake.',
+  \                'Another speling mistake.'])
+  call feedkeys(']s1z=', 'tx')
+  call assert_equal('A spelling mistake. The same speling mistake.', getline(1))
+  call assert_equal('Another speling mistake.', getline(2))
+  spellrepall
+  call assert_equal('A spelling mistake. The same spelling mistake.', getline(1))
+  call assert_equal('Another spelling mistake.', getline(2))
+  call assert_fails('spellrepall', 'E753:')
+  set spell&
+  bwipe!
+endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    601,
+/**/
     600,
 /**/
     599,