comparison src/testdir/test_vim9_expr.vim @ 24349:21c72f782ae1 v8.2.2715

patch 8.2.2715: Vim9: tests fail without the channel feature Commit: https://github.com/vim/vim/commit/886e5e737d0b2eea755c415a86997ca3b7fe5349 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 5 13:36:34 2021 +0200 patch 8.2.2715: Vim9: tests fail without the channel feature Problem: Vim9: tests fail without the channel feature. (Dominique Pell?) Solution: Check for the channel feature. (closes https://github.com/vim/vim/issues/8063)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Apr 2021 13:45:04 +0200
parents 236e9ebdb30e
children f76398d79c2e
comparison
equal deleted inserted replaced
24348:f61edf8cfa6e 24349:21c72f782ae1
2338 var dict = {name: Failing} 2338 var dict = {name: Failing}
2339 END 2339 END
2340 if has('channel') 2340 if has('channel')
2341 CheckDefAndScriptFailure(lines, 'E119:', 0) 2341 CheckDefAndScriptFailure(lines, 'E119:', 0)
2342 else 2342 else
2343 CheckDefAndScriptFailure(lines, 'E117:', 1) 2343 CheckDefAndScriptFailure(lines, 'E117:', 0)
2344 endif 2344 endif
2345 enddef 2345 enddef
2346 2346
2347 let g:oneString = 'one' 2347 let g:oneString = 'one'
2348 2348
2588 CheckDefAndScriptSuccess(lines) 2588 CheckDefAndScriptSuccess(lines)
2589 2589
2590 CheckDefAndScriptFailure2(["@. = 'yes'"], 'E354:', 'E488:', 1) 2590 CheckDefAndScriptFailure2(["@. = 'yes'"], 'E354:', 'E488:', 1)
2591 enddef 2591 enddef
2592 2592
2593 " This is slow when run under valgrind.
2593 def Test_expr7_namespace() 2594 def Test_expr7_namespace()
2594 var lines =<< trim END 2595 var lines =<< trim END
2595 g:some_var = 'some' 2596 g:some_var = 'some'
2596 assert_equal('some', get(g:, 'some_var')) 2597 assert_equal('some', get(g:, 'some_var'))
2597 assert_equal('some', get(g:, 'some_var', 'xxx')) 2598 assert_equal('some', get(g:, 'some_var', 'xxx'))