view src/testdir/test_glob2regpat.vim @ 9289:29de7dda7a6a v7.4.1927

commit https://github.com/vim/vim/commit/5b7d177e8994c003ae77ddab5bd54f8cd1ee181b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 19:54:22 2016 +0200 patch 7.4.1927 Problem: Compiler warning for signed/unsigned. Solution: Add type cast.
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Jun 2016 20:00:06 +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