view src/testdir/test_search_mbyte.in @ 12027:c2aa4af29251 v8.0.0894

patch 8.0.0894: there is no test for runtime filetype detection commit https://github.com/vim/vim/commit/0a0217abfabcee8b0779df2e18a186a4b41e18ce Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 9 22:06:48 2017 +0200 patch 8.0.0894: there is no test for runtime filetype detection Problem: There is no test for runtime filetype detection. Solution: Test a list of filetypes from patterns.
author Christian Brabandt <cb@256bit.org>
date Wed, 09 Aug 2017 22:15:04 +0200
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: