diff options
author | James McCoy <jamessan@jamessan.com> | 2017-06-06 07:33:50 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-06-06 07:33:50 -0400 |
commit | 9281653233dbf7a365370883d35062fe940d7926 (patch) | |
tree | 67bead0497d5a127b953e43c5fd55d6fbf4d098f /test | |
parent | b3129b37917f54eb056033a41d1acbb920a5b93b (diff) | |
parent | cb0abce5be1dd6212425589b61826332834dc977 (diff) | |
download | rneovim-9281653233dbf7a365370883d35062fe940d7926.tar.gz rneovim-9281653233dbf7a365370883d35062fe940d7926.tar.bz2 rneovim-9281653233dbf7a365370883d35062fe940d7926.zip |
Merge remote-tracking branch 'origin/master' into vim-7.4.1975
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/assert_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/legacy/assert_spec.lua b/test/functional/legacy/assert_spec.lua index d6255d42e7..2f342ec9a3 100644 --- a/test/functional/legacy/assert_spec.lua +++ b/test/functional/legacy/assert_spec.lua @@ -255,6 +255,16 @@ describe('assert function:', function() end) end) + -- assert_report({msg}) + describe('assert_report()', function() + it('should add a message to v:errors', function() + command("call assert_report('something is wrong')") + command("call assert_match('something is wrong', v:errors[0])") + command('call remove(v:errors, 0)') + expected_empty() + end) + end) + -- assert_exception({cmd}, [, {error}]) describe('assert_exception()', function() it('should assert thrown exceptions properly', function() |