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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user