diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:49:30 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:49:30 +0300 |
commit | c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57 (patch) | |
tree | b7e59c416d1435725c65f8952b6e55c70544d97e /test/functional/legacy/glob2regpat_spec.lua | |
parent | 62108c3b0be46936c83f6d4c98b44ceb5e6f77fd (diff) | |
parent | 27a577586eace687c47e7398845178208cae524a (diff) | |
download | rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.gz rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.bz2 rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.zip |
Merge branch 'master' into s-dash-stdin
Diffstat (limited to 'test/functional/legacy/glob2regpat_spec.lua')
-rw-r--r-- | test/functional/legacy/glob2regpat_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/legacy/glob2regpat_spec.lua b/test/functional/legacy/glob2regpat_spec.lua index 82e7e3010f..029d95206e 100644 --- a/test/functional/legacy/glob2regpat_spec.lua +++ b/test/functional/legacy/glob2regpat_spec.lua @@ -1,16 +1,15 @@ -- Tests for signs local helpers = require('test.functional.helpers')(after_each) -local clear, execute = helpers.clear, helpers.execute -local eq, neq, eval = helpers.eq, helpers.neq, helpers.eval +local clear, exc_exec = helpers.clear, helpers.exc_exec +local eq, eval = helpers.eq, helpers.eval describe('glob2regpat()', function() before_each(clear) it('handles invalid input', function() - execute('call glob2regpat(1.33)') - helpers.feed('<cr>') - neq(nil, string.find(eval('v:errmsg'), '^E806:')) + eq('Vim(call):E806: using Float as a String', + exc_exec('call glob2regpat(1.33)')) end) it('returns ^$ for empty input', function() eq('^$', eval("glob2regpat('')")) |