diff options
Diffstat (limited to 'src/testdir/test_glob2regpat.vim')
-rw-r--r-- | src/testdir/test_glob2regpat.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_glob2regpat.vim b/src/testdir/test_glob2regpat.vim index 17ae3fcf2a..965ca5c4a7 100644 --- a/src/testdir/test_glob2regpat.vim +++ b/src/testdir/test_glob2regpat.vim @@ -3,10 +3,8 @@ import './vim9.vim' as v9 func Test_glob2regpat_invalid() - if has('float') - call assert_equal('^1\.33$', glob2regpat(1.33)) - call v9.CheckDefAndScriptFailure(['echo glob2regpat(1.2)'], ['E1013: Argument 1: type mismatch, expected string but got float', 'E1174: String required for argument 1']) - endif + call assert_equal('^1\.33$', glob2regpat(1.33)) + call v9.CheckDefAndScriptFailure(['echo glob2regpat(1.2)'], ['E1013: Argument 1: type mismatch, expected string but got float', 'E1174: String required for argument 1']) call assert_fails('call glob2regpat("}")', 'E219:') call assert_fails('call glob2regpat("{")', 'E220:') endfunc |