Mercurial > vim
comparison src/testdir/test_search.vim @ 12788:cb9b2774f21f v8.0.1271
patch 8.0.1271: still too many old style tests
commit https://github.com/vim/vim/commit/fb094e14c19337de824d4e6710ca6a2617930ab0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 5 20:59:28 2017 +0100
patch 8.0.1271: still too many old style tests
Problem: Still too many old style tests.
Solution: Convert a few more tests to new style. (Yegappan Lakshmanan,
closes #2290)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Nov 2017 21:00:04 +0100 |
parents | 7f27e9769f62 |
children | 3c09e451af3a |
comparison
equal
deleted
inserted
replaced
12787:65546ba95150 | 12788:cb9b2774f21f |
---|---|
695 endfunc | 695 endfunc |
696 | 696 |
697 func Test_search_undefined_behaviour2() | 697 func Test_search_undefined_behaviour2() |
698 call search("\%UC0000000") | 698 call search("\%UC0000000") |
699 endfunc | 699 endfunc |
700 | |
701 " Test for search('multi-byte char', 'bce') | |
702 func Test_search_multibyte() | |
703 if !has('multi_byte') | |
704 return | |
705 endif | |
706 let save_enc = &encoding | |
707 set encoding=utf8 | |
708 enew! | |
709 call append('$', 'A') | |
710 call cursor(2, 1) | |
711 call assert_equal(2, search('A', 'bce', line('.'))) | |
712 enew! | |
713 let &encoding = save_enc | |
714 endfunc |