Permalink
Browse files

patch 8.0.0601: no test coverage for :spellrepall

Problem:    No test coverage for :spellrepall.
Solution:   Add a test. (Dominique Pelle, closes #1717)
  • Loading branch information...
brammool committed May 23, 2017
1 parent 2a0b06d commit 545cb79da586be3333a0a55616046f94b01f6b1a
Showing with 19 additions and 0 deletions.
  1. +17 −0 src/testdir/test_spell.vim
  2. +2 −0 src/version.c
View
@@ -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
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
601,
/**/
600,
/**/

0 comments on commit 545cb79

Please sign in to comment.