mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.0601: no test coverage for :spellrepall
Problem: No test coverage for :spellrepall.
Solution: Add a test. (Dominique Pelle, closes vim/vim#1717)
545cb79da5
This commit is contained in:
parent
2b1bcd446b
commit
3f9f7cfab1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user