Mercurial > vim
view src/testdir/test_glob2regpat.vim @ 8895:7f29248d5789 v7.4.1734
commit https://github.com/vim/vim/commit/0f518a8f4d4be4cac10389680f6bd5e3781f94b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 14 16:57:10 2016 +0200
patch 7.4.1734
Problem: Test fails when not using utf-8.
Solution: Split test in regularand utf-8 part.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Apr 2016 17:00:05 +0200 |
parents | c9daa07abf34 |
children | 6882920b42da |
line wrap: on
line source
" Test glob2regpat() func Test_invalid() call assert_fails('call glob2regpat(1.33)', 'E806:') endfunc func Test_valid() call assert_equal('^foo\.', glob2regpat('foo.*')) call assert_equal('\.vim$', glob2regpat('*.vim')) endfunc