forked from aniani/vim
patch 8.2.1786: various Normal mode commands not fully tested
Problem: Various Normal mode commands not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #7059)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user