summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-05-23 11:31:22 +0200
committerBram Moolenaar <Bram@vim.org>2017-05-23 11:31:22 +0200
commit545cb79da586be3333a0a55616046f94b01f6b1a (patch)
tree79ec0f6aff58e1c206620531683a9e1ac4c89cfc
parent2a0b06def49198aef45ef173f524a638a700f9c9 (diff)
patch 8.0.0601: no test coverage for :spellrepallv8.0.0601
Problem: No test coverage for :spellrepall. Solution: Add a test. (Dominique Pelle, closes #1717)
-rw-r--r--src/testdir/test_spell.vim17
-rw-r--r--src/version.c2
2 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim
index 0688d615e7..80a66f280a 100644
--- 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
diff --git a/src/version.c b/src/version.c
index 7262a3d415..202ce954ba 100644
--- 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,