aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/null_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-12-10 22:28:18 +0300
committerZyX <kp-pav@yandex.ru>2017-12-10 22:28:18 +0300
commit5008205a3e1eef61396e457e5091eb1341b98278 (patch)
tree3f2eb8591fb1885dfcfc2d3a4f76bdaca9d4af8a /test/functional/eval/null_spec.lua
parentf572bd7e4e15a99cc19244a4411c6a596309f489 (diff)
downloadrneovim-5008205a3e1eef61396e457e5091eb1341b98278.tar.gz
rneovim-5008205a3e1eef61396e457e5091eb1341b98278.tar.bz2
rneovim-5008205a3e1eef61396e457e5091eb1341b98278.zip
eval: Fix setmatches(), setqflist() and setloclist()
Diffstat (limited to 'test/functional/eval/null_spec.lua')
-rw-r--r--test/functional/eval/null_spec.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/functional/eval/null_spec.lua b/test/functional/eval/null_spec.lua
index 3ab9e746a4..30c6d3d450 100644
--- a/test/functional/eval/null_spec.lua
+++ b/test/functional/eval/null_spec.lua
@@ -42,12 +42,6 @@ describe('NULL', function()
describe('list', function()
-- Incorrect behaviour
- -- FIXME should return 0
- null_expr_test('is accepted by setqflist()', 'setqflist(L)', 0, -1)
- -- FIXME should return 0
- null_expr_test('is accepted by setloclist()', 'setloclist(1, L)', 0, -1)
- -- FIXME should return 0
- null_expr_test('is accepted by setmatches()', 'setmatches(L)', 0, -1)
-- FIXME should not error out
null_test('is accepted by :cexpr', 'cexpr L', 'Vim(cexpr):E777: String or List expected')
-- FIXME should not error out
@@ -129,6 +123,9 @@ describe('NULL', function()
'', '\n', function()
eq({''}, curbufmeths.get_lines(0, -1, false))
end)
+ null_expr_test('is accepted by setmatches()', 'setmatches(L)', 0, 0)
+ null_expr_test('is accepted by setqflist()', 'setqflist(L)', 0, 0)
+ null_expr_test('is accepted by setloclist()', 'setloclist(1, L)', 0, 0)
end)
describe('dict', function()
it('does not crash when indexing NULL dict', function()