comparison src/testdir/test_spell.vim @ 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 a2124e9bbb6a
children 7798e9bcdb13
comparison
equal deleted inserted replaced
11433:defbf8bfc6f6 11434:b3815e491811
25 call setline(1, "\xff") 25 call setline(1, "\xff")
26 norm z= 26 norm z=
27 set nospell 27 set nospell
28 bwipe! 28 bwipe!
29 endfunc 29 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