1
0
forked from aniani/vim

patch 9.0.1257: code style is not check in test scripts

Problem:    Code style is not check in test scripts.
Solution:   Add basic code style check for test files.
This commit is contained in:
Bram Moolenaar
2023-01-28 19:19:03 +00:00
parent 04e4f1d985
commit 94722c5107
56 changed files with 247 additions and 208 deletions

View File

@@ -1,5 +1,5 @@
" Tests for Unicode manipulations
source check.vim
source view_util.vim
source screendump.vim
@@ -107,7 +107,7 @@ func Test_list2str_str2list_latin1()
let save_encoding = &encoding
set encoding=latin1
let lres = str2list(s, 1)
let sres = list2str(l, 1)
call assert_equal([65, 66, 67], str2list("ABC"))
@@ -123,7 +123,7 @@ endfunc
func Test_screenchar_utf8()
new
" 1-cell, with composing characters
" 1-cell, with composing characters
call setline(1, ["ABC\u0308"])
redraw
call assert_equal([0x0041], screenchars(1, 1))
@@ -133,7 +133,7 @@ func Test_screenchar_utf8()
call assert_equal("B", screenstring(1, 2))
call assert_equal("C\u0308", screenstring(1, 3))
" 2-cells, with composing characters
" 2-cells, with composing characters
let text = "\u3042\u3044\u3046\u3099"
call setline(1, text)
redraw