aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-06-06 11:26:07 +0000
committerGitHub <noreply@github.com>2017-06-06 11:26:07 +0000
commitcb0abce5be1dd6212425589b61826332834dc977 (patch)
tree5e03746ac51971cf2b15960ff068171d91710b23 /test/functional/legacy
parent45d92e25638fda668e1e15fb99b54e588769656f (diff)
parent75c32b549bb505890e657d760e10295cb58cb7fc (diff)
downloadrneovim-cb0abce5be1dd6212425589b61826332834dc977.tar.gz
rneovim-cb0abce5be1dd6212425589b61826332834dc977.tar.bz2
rneovim-cb0abce5be1dd6212425589b61826332834dc977.zip
Merge pull request #6854 from jamessan/vim-8.0.0156
vim-patch:8.0.0156,8.0.0158,8.0.0167,8.0.0168,8.0.0360,8.0.0477,8.0.0478,8.0.0176,8.0.0561
Diffstat (limited to 'test/functional/legacy')
-rw-r--r--test/functional/legacy/assert_spec.lua10
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()