diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-16 00:00:46 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-16 00:01:19 +0100 |
commit | 3f9f7cfab1310a61e843dce39af8afff5b2310be (patch) | |
tree | 73cca4a6d04c3903f9a7a6362b9d4f16a567625a /src | |
parent | 2b1bcd446b6d95f608161818addecf7c6a2beeaa (diff) | |
download | rneovim-3f9f7cfab1310a61e843dce39af8afff5b2310be.tar.gz rneovim-3f9f7cfab1310a61e843dce39af8afff5b2310be.tar.bz2 rneovim-3f9f7cfab1310a61e843dce39af8afff5b2310be.zip |
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)
https://github.com/vim/vim/commit/545cb79da586be3333a0a55616046f94b01f6b1a
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_spell.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 0688d615e7..80a66f280a 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/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 |