diff options
Diffstat (limited to 'test/functional/eval/environ_spec.lua')
-rw-r--r-- | test/functional/eval/environ_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/eval/environ_spec.lua b/test/functional/eval/environ_spec.lua index 84564d9f93..4c2adcf1bf 100644 --- a/test/functional/eval/environ_spec.lua +++ b/test/functional/eval/environ_spec.lua @@ -3,7 +3,6 @@ local clear = helpers.clear local eq = helpers.eq local environ = helpers.funcs.environ local exists = helpers.funcs.exists -local iswin = helpers.iswin describe('environment variables', function() it('environ() handles empty env variable', function() @@ -12,8 +11,8 @@ describe('environment variables', function() eq(nil, environ()['DOES_NOT_EXIST']) end) it('exists() handles empty env variable', function() - clear({env={EMPTY_VAR=""}}) -- Windows treats this as "undefined". - eq((iswin() and 0 or 1), exists('$EMPTY_VAR')) + clear({env={EMPTY_VAR=""}}) + eq(1, exists('$EMPTY_VAR')) eq(0, exists('$DOES_NOT_EXIST')) end) end) |