0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-02-19 18:14:44 +01:00
parent a2f6e42ded
commit 401d9ffb5a
4 changed files with 19 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ endfunc
let s:appendToMe = 'xxx'
let s:addToMe = 111
let g:existing = 'yes'
def Test_assignment()
let bool1: bool = true
@@ -46,6 +47,13 @@ def Test_assignment()
let dict1: dict<string> = #{key: 'value'}
let dict2: dict<number> = #{one: 1, two: 2}
g:newvar = 'new'
assert_equal('new', g:newvar)
assert_equal('yes', g:existing)
g:existing = 'no'
assert_equal('no', g:existing)
v:char = 'abc'
assert_equal('abc', v:char)