view src/testdir/test_search_mbyte.in @ 10922:2cc7e86bdada v8.0.0350

patch 8.0.0350: not enough test coverage for Perl commit https://github.com/vim/vim/commit/ae177b716626c8d517b7c6c7d77f8b1aec6ba5f9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 13:45:57 2017 +0100 patch 8.0.0350: not enough test coverage for Perl Problem: Not enough test coverage for Perl. Solution: Add more Perl tests. (Dominique Perl, closes https://github.com/vim/vim/issues/1500)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 14:00:05 +0100
parents 5f9aae6928bc
children
line wrap: on
line source

Test for search('multi-byte char', 'bce')

STARTTEST
:source small.vim
:source mbyte.vim
:set encoding=utf-8
:/^Test bce:/+1
:$put =search('A', 'bce', line('.'))
:1;/^Results:/,$wq! test.out
ENDTEST

Results:

Test bce: