mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 06:31:16 +00:00
fix(env): force uppercase environ() keys on Windows #39523
This commit is contained in:
@@ -27,6 +27,15 @@ describe('vim.fn.environ()', function()
|
||||
eq(vim.NIL, n.exec_lua('return vim.env.DOES_NOT_EXIST'))
|
||||
end)
|
||||
|
||||
it('forces uppercase keys on Windows #39443', function()
|
||||
if not t.is_os('win') then
|
||||
return
|
||||
end
|
||||
clear({ env = { mixed_Case_Var = 'val' } })
|
||||
eq('val', environ()['MIXED_CASE_VAR'])
|
||||
eq(nil, environ()['mixed_Case_Var'])
|
||||
end)
|
||||
|
||||
it('results match getenv()', function()
|
||||
clear()
|
||||
eq(
|
||||
|
||||
Reference in New Issue
Block a user