diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-12 12:48:14 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-06-12 13:27:16 +0800 |
commit | 7abfb1f86e25efcbe6ec31c8d3f196a60d718123 (patch) | |
tree | 5e76e026f5819b34fc22821acaf6269692f16f87 /test/functional/legacy | |
parent | 1ffd20a26eeb360bc0d2fe8e36120d43134b465a (diff) | |
download | rneovim-7abfb1f86e25efcbe6ec31c8d3f196a60d718123.tar.gz rneovim-7abfb1f86e25efcbe6ec31c8d3f196a60d718123.tar.bz2 rneovim-7abfb1f86e25efcbe6ec31c8d3f196a60d718123.zip |
vim-patch:8.2.2949: tests failing because no error for float to string conversion
Problem: Tests failing because there is no error for float to string
conversion.
Solution: Change the check for failure to check for correct result. Make
some conversions strict in Vim9 script.
https://github.com/vim/vim/commit/3cfa5b16b06bcc034f6de77070fa779d698ab5e9
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/glob2regpat_spec.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/functional/legacy/glob2regpat_spec.lua b/test/functional/legacy/glob2regpat_spec.lua index 1771f12f85..de304f3e4b 100644 --- a/test/functional/legacy/glob2regpat_spec.lua +++ b/test/functional/legacy/glob2regpat_spec.lua @@ -1,16 +1,10 @@ --- Tests for signs - local helpers = require('test.functional.helpers')(after_each) -local clear, exc_exec = helpers.clear, helpers.exc_exec +local clear = helpers.clear local eq, eval = helpers.eq, helpers.eval describe('glob2regpat()', function() before_each(clear) - it('handles invalid input', function() - eq('Vim(call):E806: Using a Float as a String', - exc_exec('call glob2regpat(1.33)')) - end) it('returns ^$ for empty input', function() eq('^$', eval("glob2regpat('')")) end) |