Closed Wolfthuk closed 7 years ago
minishell/builtins/setenv/004-invalid-identifier (FAILED)
Description: The purpose of this test is to check that using a wrong variable name with the builtin setenv (or export) results in error.
setenv
export
STDIN: 01: setenv 42 02: export 42
STDOUT: SUCCESS might be_empty (no output)
STDERR: FAILURE expected_to_not be_empty WARNING might match_regex (not.*identifier|must begin.*letter) (no output)
(not.*identifier|must begin.*letter)
minishell/builtins/setenv/004-invalid-identifier (FAILED)
Description: The purpose of this test is to check that using a wrong variable name with the builtin
setenv
(orexport
) results in error.STDIN: 01: setenv 42 02: export 42
STDOUT: SUCCESS might be_empty (no output)
STDERR: FAILURE expected_to_not be_empty WARNING might match_regex
(not.*identifier|must begin.*letter)
(no output)