Mercurial > vim
comparison src/testdir/test_cursor_func.vim @ 9121:7350959e53c3 v7.4.1844
commit https://github.com/vim/vim/commit/8e8df251bf2505e5decf258397c6069fbe5e2e01
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 25 21:23:21 2016 +0200
patch 7.4.1844
Problem: Using old function name in comment. More functions should start
with test_.
Solution: Rename function in comment. (Higashi Higashi) Rename
disable_char_avail_for_testing() to test_disable_char_avail().
And alloc_fail() to test_alloc_fail().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 25 May 2016 21:30:08 +0200 |
parents | 26f555e9aab1 |
children | 7c7e496e625d |
comparison
equal
deleted
inserted
replaced
9120:2d179e86d3c0 | 9121:7350959e53c3 |
---|---|
42 | 42 |
43 func Test_curswant_with_autocommand() | 43 func Test_curswant_with_autocommand() |
44 new | 44 new |
45 call setline(1, ['func()', '{', '}', '----']) | 45 call setline(1, ['func()', '{', '}', '----']) |
46 autocmd! CursorMovedI * call s:Highlight_Matching_Pair() | 46 autocmd! CursorMovedI * call s:Highlight_Matching_Pair() |
47 call disable_char_avail_for_testing(1) | 47 call test_disable_char_avail(1) |
48 exe "normal! 3Ga\<Down>X\<Esc>" | 48 exe "normal! 3Ga\<Down>X\<Esc>" |
49 call disable_char_avail_for_testing(0) | 49 call test_disable_char_avail(0) |
50 call assert_equal('-X---', getline(4)) | 50 call assert_equal('-X---', getline(4)) |
51 autocmd! CursorMovedI * | 51 autocmd! CursorMovedI * |
52 quit! | 52 quit! |
53 endfunc | 53 endfunc |
54 | 54 |