mirror of
https://github.com/vim/vim.git
synced 2026-06-14 15:37:28 +02:00
eb380b991c
Problem: tests: testdir is a bit messy Solution: move test scripts into testdir/util/ directory src/testdir/ has become a dumping ground mixing test cases with utility functions. Let's fix this by moving all utility functions into the testdir/util/ directory Also a few related changes had to be done: - Update Filelist - update README.txt and mention the new directory layout - fix shadowbuild by linking the util directory into the shadow dir closes: #17677 Signed-off-by: Christian Brabandt <cb@256bit.org>
17 lines
373 B
VimL
17 lines
373 B
VimL
|
|
import './util/vim9.vim' as v9
|
|
CheckFeature python3
|
|
|
|
def Test_python3_py3eval_locals()
|
|
var lines =<< trim EOF
|
|
var s = 'string'
|
|
var d = {'s': s}
|
|
assert_equal('string', py3eval('s', {'s': s}))
|
|
py3eval('d.update({"s": "new"})', {'d': d})
|
|
assert_equal('new', d['s'])
|
|
EOF
|
|
v9.CheckDefAndScriptSuccess(lines)
|
|
enddef
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|