comparison src/testdir/test_spellfile.vim @ 22476:b3751f4d3b26 v8.2.1786

patch 8.2.1786: various Normal mode commands not fully tested Commit: https://github.com/vim/vim/commit/8a9bc95eaec53f4e0c951ff8f2686ae5113a5709 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 2 18:48:07 2020 +0200 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 https://github.com/vim/vim/issues/7059)
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Oct 2020 19:00:05 +0200
parents 37ad27fa22e7
children 004b1c60daa9
comparison
equal deleted inserted replaced
22475:dd6a45c54e49 22476:b3751f4d3b26
22 let a=execute('unsilent :norm! ]s') 22 let a=execute('unsilent :norm! ]s')
23 call assert_equal('1 good', getline('.')) 23 call assert_equal('1 good', getline('.'))
24 call assert_equal('search hit BOTTOM, continuing at TOP', a[1:]) 24 call assert_equal('search hit BOTTOM, continuing at TOP', a[1:])
25 let cnt=readfile('./Xspellfile.add') 25 let cnt=readfile('./Xspellfile.add')
26 call assert_equal('goood', cnt[0]) 26 call assert_equal('goood', cnt[0])
27
28 " zg should fail in operator-pending mode
29 call assert_beeps('norm! czg')
30
31 " zg fails in visual mode when not able to get the visual text
32 call assert_beeps('norm! ggVjzg')
33 norm! V
34
35 " zg fails for a non-identifier word
36 call append(line('$'), '###')
37 call assert_fails('norm! Gzg', 'E349:')
38 $d
27 39
28 " Test for zw 40 " Test for zw
29 2 41 2
30 norm! $zw 42 norm! $zw
31 1 43 1