Skip to content

Commit 545cb79

Browse files
committed
patch 8.0.0601: no test coverage for :spellrepall
Problem: No test coverage for :spellrepall. Solution: Add a test. (Dominique Pelle, closes #1717)
1 parent 2a0b06d commit 545cb79

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/testdir/test_spell.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,20 @@ func Test_z_equal_on_invalid_utf8_word()
2727
set nospell
2828
bwipe!
2929
endfunc
30+
31+
func Test_spellreall()
32+
new
33+
set spell
34+
call assert_fails('spellrepall', 'E752:')
35+
call setline(1, ['A speling mistake. The same speling mistake.',
36+
\ 'Another speling mistake.'])
37+
call feedkeys(']s1z=', 'tx')
38+
call assert_equal('A spelling mistake. The same speling mistake.', getline(1))
39+
call assert_equal('Another speling mistake.', getline(2))
40+
spellrepall
41+
call assert_equal('A spelling mistake. The same spelling mistake.', getline(1))
42+
call assert_equal('Another spelling mistake.', getline(2))
43+
call assert_fails('spellrepall', 'E753:')
44+
set spell&
45+
bwipe!
46+
endfunc

src/version.c

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

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
601,
767769
/**/
768770
600,
769771
/**/

0 commit comments

Comments
 (0)