view src/testdir/test_glob2regpat.vim @ 9385:60db35a20823 v7.4.1974

commit https://github.com/vim/vim/commit/4a6c670b844a3ef9aec865a8216eaf363bab8721 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 1 15:48:05 2016 +0200 patch 7.4.1974 Problem: GUI has a problem with some termcodes. Solution: Handle negative numbers. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jul 2016 16: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