comparison src/testdir/test_vim9_expr.vim @ 27488:07da466dcf6d v8.2.4272

patch 8.2.4272: Vim9 expr test fails without the channel feature Commit: https://github.com/vim/vim/commit/eb6c2765959c91ddbb527f96f91ba5be199b8d41 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 31 13:36:36 2022 +0000 patch 8.2.4272: Vim9 expr test fails without the channel feature Problem: Vim9 expr test fails without the channel feature. (Dominique Pell?) Solution: Remove "g:" before "CheckFeature". (closes #9671)
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 Jan 2022 14:45:04 +0100
parents a14c4d3e3260
children 4ca0ee7b4f86
comparison
equal deleted inserted replaced
27487:e2a8c7425462 27488:07da466dcf6d
1470 call v9.CheckDefAndScriptFailure(['var x = 1 + true'], ['E1051:', 'E1138:'], 1) 1470 call v9.CheckDefAndScriptFailure(['var x = 1 + true'], ['E1051:', 'E1138:'], 1)
1471 call v9.CheckDefAndScriptFailure(['var x = 1 + false'], ['E1051:', 'E1138:'], 1) 1471 call v9.CheckDefAndScriptFailure(['var x = 1 + false'], ['E1051:', 'E1138:'], 1)
1472 endfunc 1472 endfunc
1473 1473
1474 func Test_expr5_fails_channel() 1474 func Test_expr5_fails_channel()
1475 g:CheckFeature channel 1475 CheckFeature channel
1476
1476 call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_job()"], ['E1105:', 'E908:'], 1) 1477 call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_job()"], ['E1105:', 'E908:'], 1)
1477 call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_channel()"], ['E1105:', 'E908:'], 1) 1478 call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_channel()"], ['E1105:', 'E908:'], 1)
1478 endfunc 1479 endfunc
1479 1480
1480 def Test_expr5_list_add() 1481 def Test_expr5_list_add()
1687 call v9.CheckDefAndScriptFailure(lines, msg, 2) 1688 call v9.CheckDefAndScriptFailure(lines, msg, 2)
1688 endfor 1689 endfor
1689 endfunc 1690 endfunc
1690 1691
1691 func Test_expr6_float_fails() 1692 func Test_expr6_float_fails()
1692 g:CheckFeature float 1693 CheckFeature float
1693 call v9.CheckDefAndScriptFailure(["var x = 1.0 % 2"], ['E1035:', 'E804:'], 1) 1694 call v9.CheckDefAndScriptFailure(["var x = 1.0 % 2"], ['E1035:', 'E804:'], 1)
1694 endfunc 1695 endfunc
1695 1696
1696 " define here to use old style parsing 1697 " define here to use old style parsing
1697 if has('float') 1698 if has('float')