aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-06 01:23:49 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-06 01:23:49 +0200
commita29358dc58a11c7f6b82844d8309d5a5b2c8cb91 (patch)
tree3547cf74151f62d98809036f69be0610107a301e /test
parentb09e03c64d0f38a43b5ef068141bc86e365cd7fa (diff)
parentd55b12ea508500760796ede2bca9b48f391afb80 (diff)
downloadrneovim-a29358dc58a11c7f6b82844d8309d5a5b2c8cb91.tar.gz
rneovim-a29358dc58a11c7f6b82844d8309d5a5b2c8cb91.tar.bz2
rneovim-a29358dc58a11c7f6b82844d8309d5a5b2c8cb91.zip
Merge #10655 'environ(), getenv(), setenv()'
close #10655
Diffstat (limited to 'test')
-rw-r--r--test/functional/eval/environ_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/eval/environ_spec.lua b/test/functional/eval/environ_spec.lua
new file mode 100644
index 0000000000..eb52f9e2da
--- /dev/null
+++ b/test/functional/eval/environ_spec.lua
@@ -0,0 +1,12 @@
+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)