mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
patch 8.1.1214: old style tests
Problem: Old style tests. Solution: Move tests from test14 to new style test files. (Yegappan Lakshmanan, closes #4308)
This commit is contained in:
@@ -1447,3 +1447,19 @@ func Test_leave_insert_autocmd()
|
||||
au! InsertLeave
|
||||
iunmap x
|
||||
endfunc
|
||||
|
||||
" Test for inserting characters using CTRL-V followed by a number.
|
||||
func Test_edit_special_chars()
|
||||
new
|
||||
|
||||
if has("ebcdic")
|
||||
let t = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>"
|
||||
else
|
||||
let t = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>"
|
||||
endif
|
||||
|
||||
exe "normal " . t
|
||||
call assert_equal("ABC !a\<C-O>g\<C-G>8", getline(2))
|
||||
|
||||
close!
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user