mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 21:08:17 +00:00

- use os_getenvname_at_index / os_getenv - f_getenv: empty (*p == NUL) is not null (undefined)
13 lines
351 B
Lua
13 lines
351 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local clear = helpers.clear
|
|
local eq = helpers.eq
|
|
local environ = helpers.funcs.environ
|
|
|
|
describe('environ()', function()
|
|
it('handles empty env variable', function()
|
|
clear({env={EMPTY_VAR=""}})
|
|
eq("", environ()['EMPTY_VAR'])
|
|
eq(nil, environ()['DOES_NOT_EXIST'])
|
|
end)
|
|
end)
|