Mercurial > vim
comparison src/testdir/test_charsearch_utf8.vim @ 15406:63b02fcf1361 v8.1.0711
patch 8.1.0711: test files still use function!
commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 9 23:01:02 2019 +0100
patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Jan 2019 23:15:05 +0100 |
parents | 95c646fd8d9b |
children | 2dcaa860e3fc |
comparison
equal
deleted
inserted
replaced
15405:3a8785d45112 | 15406:63b02fcf1361 |
---|---|
2 if !has('multi_byte') | 2 if !has('multi_byte') |
3 finish | 3 finish |
4 endif | 4 endif |
5 | 5 |
6 " Test for t,f,F,T movement commands | 6 " Test for t,f,F,T movement commands |
7 function! Test_search_cmds() | 7 func Test_search_cmds() |
8 new! | 8 new! |
9 call setline(1, "・最初から最後まで最強のVimは最高") | 9 call setline(1, "・最初から最後まで最強のVimは最高") |
10 1 | 10 1 |
11 normal! f最 | 11 normal! f最 |
12 call assert_equal([0, 1, 4, 0], getpos('.')) | 12 call assert_equal([0, 1, 4, 0], getpos('.')) |
15 normal! 2; | 15 normal! 2; |
16 call assert_equal([0, 1, 43, 0], getpos('.')) | 16 call assert_equal([0, 1, 43, 0], getpos('.')) |
17 normal! , | 17 normal! , |
18 call assert_equal([0, 1, 28, 0], getpos('.')) | 18 call assert_equal([0, 1, 28, 0], getpos('.')) |
19 bw! | 19 bw! |
20 endfunction | 20 endfunc |
21 | 21 |
22 " vim: shiftwidth=2 sts=2 expandtab | 22 " vim: shiftwidth=2 sts=2 expandtab |