aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_utf8_comparisons.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-30 20:59:40 -0500
committerGitHub <noreply@github.com>2020-11-30 20:59:40 -0500
commita1a4dd34ea26d397f7222afe943f67bbdb889d3f (patch)
tree34f1dde81d850623a796f633b19d396a740730ad /src/nvim/testdir/test_utf8_comparisons.vim
parentc3a45032e6fa3b2aafff10a1e5ef606d077cd954 (diff)
parent87279bb8099fb0c37667ae131d4f7dbeb42dc504 (diff)
downloadrneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.gz
rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.bz2
rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.zip
Merge pull request #13419 from janlazo/vim-8.2.2067
vim-patch:8.1.2264,8.2.{617,620,628,2067,2069}
Diffstat (limited to 'src/nvim/testdir/test_utf8_comparisons.vim')
-rw-r--r--src/nvim/testdir/test_utf8_comparisons.vim26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/nvim/testdir/test_utf8_comparisons.vim b/src/nvim/testdir/test_utf8_comparisons.vim
index 1fc670aafd..fdf9d80802 100644
--- a/src/nvim/testdir/test_utf8_comparisons.vim
+++ b/src/nvim/testdir/test_utf8_comparisons.vim
@@ -29,26 +29,26 @@ function! Chk(a, b, result)
call Ch(a:a, '<?', a:b, 1)
call Ch(a:a, '>?', a:b, 0)
endif
-endfunction
+endfunc
-function! Check(a, b, result)
+func Check(a, b, result)
call Chk(a:a, a:b, a:result)
call Chk(a:b, a:a, -a:result)
-endfunction
+endfunc
-function! LT(a, b)
+func LT(a, b)
call Check(a:a, a:b, -1)
-endfunction
+endfunc
-function! GT(a, b)
+func GT(a, b)
call Check(a:a, a:b, 1)
-endfunction
+endfunc
-function! EQ(a, b)
+func EQ(a, b)
call Check(a:a, a:b, 0)
-endfunction
+endfunc
-function Test_comparisons()
+func Test_comparisons()
call EQ('', '')
call LT('', 'a')
call EQ('abc', 'abc')
@@ -81,11 +81,11 @@ function Test_comparisons()
for n in range(0xC0, 0xFF)
call LT(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n))
endfor
-endfunction
+endfunc
" test that g~ap changes one paragraph only.
-function Test_gap()
+func Test_gap()
new
call feedkeys("iabcd\n\ndefggg0g~ap", "tx")
call assert_equal(["ABCD", "", "defg"], getline(1,3))
-endfunction
+endfunc