eval: Port parts of 7.4.1267 that are not already present

This commit is contained in:
ZyX
2016-02-06 20:54:42 +03:00
parent b7cb8f0597
commit 0aa3e7b7ce
4 changed files with 59 additions and 30 deletions

View File

@@ -147,9 +147,9 @@ describe('Special values', function()
end)
it('fails in index', function()
eq('Vim(echo):E15: Cannot index a special value', exc_exec('echo v:true[0]'))
eq('Vim(echo):E15: Cannot index a special value', exc_exec('echo v:false[0]'))
eq('Vim(echo):E15: Cannot index a special value', exc_exec('echo v:null[0]'))
eq('Vim(echo):E909: Cannot index a special variable', exc_exec('echo v:true[0]'))
eq('Vim(echo):E909: Cannot index a special variable', exc_exec('echo v:false[0]'))
eq('Vim(echo):E909: Cannot index a special variable', exc_exec('echo v:null[0]'))
end)
it('is accepted by assert_true and assert_false', function()