Mercurial > vim
comparison src/testdir/test_glob2regpat.vim @ 14383:8846b8344430 v8.1.0206
patch 8.1.0206: duplicate test function name
commit https://github.com/vim/vim/commit/cd96eef3a869557bd3d2d4497861d87cb525db06
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 23 04:49:23 2018 +0200
patch 8.1.0206: duplicate test function name
Problem: Duplicate test function name.
Solution: Rename both functions.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 23 Jul 2018 05:00:05 +0200 |
parents | f8396c6e5709 |
children | 9fac6d0de69a |
comparison
equal
deleted
inserted
replaced
14382:c3c3a4560106 | 14383:8846b8344430 |
---|---|
1 " Test glob2regpat() | 1 " Test glob2regpat() |
2 | 2 |
3 func Test_invalid() | 3 func Test_glob2regpat_invalid() |
4 call assert_fails('call glob2regpat(1.33)', 'E806:') | 4 call assert_fails('call glob2regpat(1.33)', 'E806:') |
5 call assert_fails('call glob2regpat("}")', 'E219:') | 5 call assert_fails('call glob2regpat("}")', 'E219:') |
6 call assert_fails('call glob2regpat("{")', 'E220:') | 6 call assert_fails('call glob2regpat("{")', 'E220:') |
7 endfunc | 7 endfunc |
8 | 8 |
9 func Test_valid() | 9 func Test_glob2regpat_valid() |
10 call assert_equal('^foo\.', glob2regpat('foo.*')) | 10 call assert_equal('^foo\.', glob2regpat('foo.*')) |
11 call assert_equal('^foo.$', glob2regpat('foo?')) | 11 call assert_equal('^foo.$', glob2regpat('foo?')) |
12 call assert_equal('\.vim$', glob2regpat('*.vim')) | 12 call assert_equal('\.vim$', glob2regpat('*.vim')) |
13 call assert_equal('^[abc]$', glob2regpat('[abc]')) | 13 call assert_equal('^[abc]$', glob2regpat('[abc]')) |
14 call assert_equal('^foo bar$', glob2regpat('foo\ bar')) | 14 call assert_equal('^foo bar$', glob2regpat('foo\ bar')) |