aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_normal.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-13 00:47:51 +0200
committerGitHub <noreply@github.com>2018-08-13 00:47:51 +0200
commitee5cc88a73401e4352660862631117c8319950f7 (patch)
treea9166f6ea1abf0262694ca06f04b27f7f1829c47 /src/nvim/testdir/test_normal.vim
parent97331cab675bee00337aed983e9a3e302e28a619 (diff)
parenta4c957bab7270e0631f147f572b8d905d9c7acda (diff)
downloadrneovim-ee5cc88a73401e4352660862631117c8319950f7.tar.gz
rneovim-ee5cc88a73401e4352660862631117c8319950f7.tar.bz2
rneovim-ee5cc88a73401e4352660862631117c8319950f7.zip
Merge #8851 from janlazo/vim-8.0.1227
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
-rw-r--r--src/nvim/testdir/test_normal.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index c638920dd3..4c63bd1f71 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -1201,6 +1201,13 @@ func! Test_normal19_z_spell()
call assert_match("Word 'goood' added to ./Xspellfile2.add", a)
call assert_equal('goood', cnt[0])
+ " Test for :spellgood!
+ let temp = execute(':spe!0/0')
+ call assert_match('Invalid region', temp)
+ let spellfile = matchstr(temp, 'Invalid region nr in \zs.*\ze line \d: 0')
+ call assert_equal(['# goood', '# goood/!', '#oood', '0/0'], readfile(spellfile))
+ call delete(spellfile)
+
" clean up
exe "lang" oldlang
call delete("./Xspellfile.add")