]> granicus.if.org Git - vim/commitdiff
patch 8.0.0601: no test coverage for :spellrepall v8.0.0601
authorBram Moolenaar <Bram@vim.org>
Tue, 23 May 2017 09:31:22 +0000 (11:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 May 2017 09:31:22 +0000 (11:31 +0200)
Problem:    No test coverage for :spellrepall.
Solution:   Add a test. (Dominique Pelle, closes #1717)

src/testdir/test_spell.vim
src/version.c

index 0688d615e7aa342973e9c55b17541d1148817849..80a66f280a7b503165a1546289af02bcc085287f 100644 (file)
@@ -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
index 7262a3d415eecb3d2fe0f1c84045ad91fef00323..202ce954ba5b5440171ff86d94f9a7e023a02cf6 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    601,
 /**/
     600,
 /**/