Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 19449:f8408ba21982 v8.2.0282
patch 8.2.0282: Vim9: setting number option not tested
Commit: https://github.com/vim/vim/commit/401d9ffb5a8a40102c000c2d2614aa043f541f90
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 19 18:14:44 2020 +0100
patch 8.2.0282: Vim9: setting number option not tested
Problem: Vim9: setting number option not tested.
Solution: Add more tests. Fix assigning to global variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Feb 2020 18:15:05 +0100 |
parents | 5d34ae66118e |
children | b26e96f7c12f |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -596,8 +596,6 @@ let g:dict_one = #{one: 1} let $TESTVAR = 'testvar' -let @a = 'register a' - " test low level expression def Test_expr7_number() " number constant @@ -675,6 +673,8 @@ def Test_expr7_option() " option set ts=11 assert_equal(11, &ts) + &ts = 9 + assert_equal(9, &ts) set ts=8 set grepprg=some\ text assert_equal('some text', &grepprg) @@ -690,7 +690,7 @@ def Test_expr7_environment() enddef def Test_expr7_register() - " register + @a = 'register a' assert_equal('register a', @a) enddef @@ -724,7 +724,8 @@ func Test_expr7_fails() call CheckDefFailure("let x = @", "E1002:") call CheckDefFailure("let x = @<", "E354:") - call CheckDefFailure("let x = ¬exist", "E113:") + call CheckDefFailure("let x = ¬exist", 'E113:') + call CheckDefExecFailure("&grepprg = [343]", 'E1051:') endfunc let g:Funcrefs = [function('add')]