diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-10 03:54:21 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-10 04:00:54 +0300 |
commit | 5c1ddb5078c90f69c7225a7b2e74ccb914dcdd6a (patch) | |
tree | be4f3d0bb5af6d12dd5eda294dd0649b8f44f354 /test/functional/eval/null_spec.lua | |
parent | 21745d72b8c24c7f19dea5d53384da4875c43e74 (diff) | |
download | rneovim-5c1ddb5078c90f69c7225a7b2e74ccb914dcdd6a.tar.gz rneovim-5c1ddb5078c90f69c7225a7b2e74ccb914dcdd6a.tar.bz2 rneovim-5c1ddb5078c90f69c7225a7b2e74ccb914dcdd6a.zip |
eval: Fix writefile()
Diffstat (limited to 'test/functional/eval/null_spec.lua')
-rw-r--r-- | test/functional/eval/null_spec.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/eval/null_spec.lua b/test/functional/eval/null_spec.lua index 20f9c70a41..7452185208 100644 --- a/test/functional/eval/null_spec.lua +++ b/test/functional/eval/null_spec.lua @@ -42,10 +42,6 @@ describe('NULL', function() describe('list', function() -- Incorrect behaviour - -- 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), - 'E484: Can\'t open file ' .. tmpfname, {0, {}}) -- FIXME should return 0 null_expr_test('is accepted by setqflist()', 'setqflist(L)', 0, -1) -- FIXME should return 0 @@ -104,6 +100,9 @@ describe('NULL', function() 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) + null_expr_test('is accepted as an empty list by writefile()', + ('[writefile(L, "%s"), readfile("%s")]'):format(tmpfname, tmpfname), + 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) |