summaryrefslogtreecommitdiff
path: root/src/testdir/test_spellfile.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-02 18:48:07 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-02 18:48:07 +0200
commit8a9bc95eaec53f4e0c951ff8f2686ae5113a5709 (patch)
treee4c87fcdb5bdeeccd51d7f7112a96199c4b5136f /src/testdir/test_spellfile.vim
parent3f974ff45e0ea4b85fea7d8768f005d8a2c7941e (diff)
downloadvim-git-8a9bc95eaec53f4e0c951ff8f2686ae5113a5709.tar.gz
patch 8.2.1786: various Normal mode commands not fully testedv8.2.1786
Problem: Various Normal mode commands not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #7059)
Diffstat (limited to 'src/testdir/test_spellfile.vim')
-rw-r--r--src/testdir/test_spellfile.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_spellfile.vim b/src/testdir/test_spellfile.vim
index 49e02326a..410553daf 100644
--- a/src/testdir/test_spellfile.vim
+++ b/src/testdir/test_spellfile.vim
@@ -25,6 +25,18 @@ func Test_spell_normal()
let cnt=readfile('./Xspellfile.add')
call assert_equal('goood', cnt[0])
+ " zg should fail in operator-pending mode
+ call assert_beeps('norm! czg')
+
+ " zg fails in visual mode when not able to get the visual text
+ call assert_beeps('norm! ggVjzg')
+ norm! V
+
+ " zg fails for a non-identifier word
+ call append(line('$'), '###')
+ call assert_fails('norm! Gzg', 'E349:')
+ $d
+
" Test for zw
2
norm! $zw