comparison src/testdir/test_erasebackword.vim @ 12851:90aaa974594e v8.0.1302

patch 8.0.1302: still too many old style tests commit https://github.com/vim/vim/commit/209d3874c19d73b209e7d223cf05ea22e183f408 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 16 21:52:51 2017 +0100 patch 8.0.1302: still too many old style tests Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes #2326)
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Nov 2017 22:00:03 +0100
parents
children 2dcaa860e3fc
comparison
equal deleted inserted replaced
12850:3064e2b6ca3b 12851:90aaa974594e
1
2 func Test_erasebackword()
3 if !has('multi_byte')
4 return
5 endif
6
7 set encoding=utf-8
8 enew
9
10 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>"
11 call assert_equal(' wwwこんにちわ世界ワールド', getline('.'))
12 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>"
13 call assert_equal(' wwwこんにちわ世界', getline('.'))
14 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>"
15 call assert_equal(' wwwこんにちわ', getline('.'))
16 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>"
17 call assert_equal(' www', getline('.'))
18 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
19 call assert_equal(' ', getline('.'))
20 exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
21 call assert_equal('', getline('.'))
22
23 enew!
24 set encoding&
25 endfunc