comparison src/testdir/test_environ.vim @ 17994:0dcc2ee838dd v8.1.1993

patch 8.1.1993: more functions can be used as methods Commit: https://github.com/vim/vim/commit/196b4664432f932625cfb6371dc42c24efe6c203 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 6 21:34:30 2019 +0200 patch 8.1.1993: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Sep 2019 21:45:04 +0200
parents 4935244c1128
children 08940efa6b4e
comparison
equal deleted inserted replaced
17993:55bdc69c5e57 17994:0dcc2ee838dd
16 call assert_equal('foo', getenv('TESTENV')) 16 call assert_equal('foo', getenv('TESTENV'))
17 endfunc 17 endfunc
18 18
19 func Test_setenv() 19 func Test_setenv()
20 unlet! $TESTENV 20 unlet! $TESTENV
21 call setenv('TEST ENV', 'foo') 21 eval 'foo'->setenv('TEST ENV')
22 call assert_equal('foo', getenv('TEST ENV')) 22 call assert_equal('foo', getenv('TEST ENV'))
23 call setenv('TEST ENV', v:null) 23 call setenv('TEST ENV', v:null)
24 call assert_equal(v:null, getenv('TEST ENV')) 24 call assert_equal(v:null, getenv('TEST ENV'))
25 endfunc 25 endfunc
26 26