We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec482e2 commit fe3b24aCopy full SHA for fe3b24a
goos/api_test.go
@@ -14,6 +14,9 @@ func TestApi(t *testing.T) {
14
os.Setenv("ENV_VAR", "TEST=1")
15
defer os.Unsetenv("ENV_VAR")
16
17
+ os.Setenv("EMPTY_VAR", "")
18
+ defer os.Unsetenv("EMPTY_VAR")
19
+
20
preload := tests.SeveralPreloadFuncs(
21
runtime.Preload,
22
Preload,
goos/test/test_api.lua
@@ -35,4 +35,6 @@ function Test_environ(t)
35
assert(env.PATH or env.Path, "PATH environment variable should exist")
36
-- Test environment variable with equals sign in value
37
assert(env.ENV_VAR == "TEST=1", "ENV_VAR should be TEST=1")
38
+ -- Test environment variable with empty value
39
+ assert(env.EMPTY_VAR == "", "EMPTY_VAR should be empty string")
40
end
0 commit comments