diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-03-24 15:02:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 15:02:15 +0100 |
commit | 47c24eed0191f8f72646be63dee94ac2b35eb062 (patch) | |
tree | 808fc02c608fd56e93cd502069adcba9c561df7d /spec/03-environment_spec.lua | |
parent | 8fe13074a7d9fdd88c5423d1e9c5fcc4ec43a57b (diff) | |
download | luasystem-47c24eed0191f8f72646be63dee94ac2b35eb062.tar.gz luasystem-47c24eed0191f8f72646be63dee94ac2b35eb062.tar.bz2 luasystem-47c24eed0191f8f72646be63dee94ac2b35eb062.zip |
chore(test): add tests (manual) for isatty terminal function (#22)
Diffstat (limited to '')
-rw-r--r-- | spec/03-environment_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/03-environment_spec.lua b/spec/03-environment_spec.lua index 842ed6f..96f4a78 100644 --- a/spec/03-environment_spec.lua +++ b/spec/03-environment_spec.lua | |||
@@ -1,5 +1,6 @@ | |||
1 | -- Import the library that contains the environment-related functions | 1 | -- Import the library that contains the environment-related functions |
2 | local system = require("system") | 2 | local system = require("system") |
3 | require("spec.helpers") | ||
3 | 4 | ||
4 | describe("Environment Variables:", function() | 5 | describe("Environment Variables:", function() |
5 | 6 | ||
@@ -11,9 +12,8 @@ describe("Environment Variables:", function() | |||
11 | end) | 12 | end) |
12 | 13 | ||
13 | 14 | ||
14 | local func = system.windows and pending or it --pending on Windows | ||
15 | -- Windows will unset a variable if set as an empty string | 15 | -- Windows will unset a variable if set as an empty string |
16 | func("should set an empty environment variable value", function() | 16 | nix_it("should set an empty environment variable value", function() |
17 | assert.is_true(system.setenv("TEST_VAR", "")) | 17 | assert.is_true(system.setenv("TEST_VAR", "")) |
18 | assert.is_equal("", system.getenv("TEST_VAR")) | 18 | assert.is_equal("", system.getenv("TEST_VAR")) |
19 | end) | 19 | end) |