diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-10 03:50:52 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-10 04:00:54 +0300 |
commit | 21745d72b8c24c7f19dea5d53384da4875c43e74 (patch) | |
tree | 0c4b6a62500bb802cea8d635b500b993bb271a68 /test/functional/eval/null_spec.lua | |
parent | 274f32d42e61e6f6c76b9ca499f5b79f256a481a (diff) | |
download | rneovim-21745d72b8c24c7f19dea5d53384da4875c43e74.tar.gz rneovim-21745d72b8c24c7f19dea5d53384da4875c43e74.tar.bz2 rneovim-21745d72b8c24c7f19dea5d53384da4875c43e74.zip |
eval: Fix inputlist()
Diffstat (limited to 'test/functional/eval/null_spec.lua')
-rw-r--r-- | test/functional/eval/null_spec.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/eval/null_spec.lua b/test/functional/eval/null_spec.lua index 992bc6b39f..20f9c70a41 100644 --- a/test/functional/eval/null_spec.lua +++ b/test/functional/eval/null_spec.lua @@ -42,9 +42,6 @@ describe('NULL', function() describe('list', function() -- Incorrect behaviour - -- FIXME should be accepted by inputlist() - null_expr_test('is accepted as an empty list by inputlist()', - '[feedkeys("\\n"), inputlist(L)]', 'E686: Argument of inputlist() must be a List', {0, 0}) -- FIXME should be accepted by writefile(), return {0, {}} null_expr_test('is accepted as an empty list by writefile()', ('[writefile(L, "%s"), readfile("%s")]'):format(tmpfname, tmpfname), @@ -106,6 +103,7 @@ describe('NULL', function() null_expr_test('makes map() return v:_null_list', 'map(L, "v:val") is# L', 0, 1) null_expr_test('makes filter() return v:_null_list', 'filter(L, "1") is# L', 0, 1) null_test('is treated by :let as empty list', ':let [l] = L', 'Vim(let):E688: More targets than List items') + null_expr_test('is accepted as an empty list by inputlist()', '[feedkeys("\\n"), inputlist(L)]', 0, 0) -- FIXME fix test results null_expr_test('does not crash add()', 'add(L, 0)', 0, 1) null_expr_test('makes insert() error out', 'insert(L, 1)', '', nil) |