Closed Wolfthuk closed 7 years ago
bonuses/tilde-expansion/006-expanded-with-OLDPWD-2 (FAILED)
Description: The purpose of this test is to check that the symbol tilde ~ may be expanded with the environment variable OLDPWD when followed by the symbol +.
~
+
Before test: 01: rm -rf "./TOKEN201612111732_SUBDIRECTORY" 02: mkdir "./TOKEN201612111732_SUBDIRECTORY" 03: export "HOME=/TOKEN201612111732"
STDIN: 01: cd ./TOKEN201612111732_SUBDIRECTORY 02: /Users/agoomany/TRAVAIL/42ShellTester/tmp/write_on_stdout ~-/TOKEN201612111732_OTHERDIRECTORY
STDOUT: FAILURE expected_to_not match_regex ~-/TOKEN201612111732_OTHERDIRECTORY SUCCESS expected_to_not match_regex /TOKEN201612111732-/TOKEN201612111732_OTHERDIRECTORY FAILURE expected_to match_regex ^/Users/agoomany/TRAVAIL/42ShellTester/tmp/TOKEN201612111732_OTHERDIRECTORY$ 01: ~-/TOKEN201612111732_OTHERDIRECTORY
~-/TOKEN201612111732_OTHERDIRECTORY
/TOKEN201612111732-/TOKEN201612111732_OTHERDIRECTORY
^/Users/agoomany/TRAVAIL/42ShellTester/tmp/TOKEN201612111732_OTHERDIRECTORY$
STDERR: (no output)
bonuses/tilde-expansion/006-expanded-with-OLDPWD-2 (FAILED)
Description: The purpose of this test is to check that the symbol tilde
~
may be expanded with the environment variable OLDPWD when followed by the symbol+
.Before test: 01: rm -rf "./TOKEN201612111732_SUBDIRECTORY" 02: mkdir "./TOKEN201612111732_SUBDIRECTORY" 03: export "HOME=/TOKEN201612111732"
STDIN: 01: cd ./TOKEN201612111732_SUBDIRECTORY 02: /Users/agoomany/TRAVAIL/42ShellTester/tmp/write_on_stdout ~-/TOKEN201612111732_OTHERDIRECTORY
STDOUT: FAILURE expected_to_not match_regex
~-/TOKEN201612111732_OTHERDIRECTORY
SUCCESS expected_to_not match_regex/TOKEN201612111732-/TOKEN201612111732_OTHERDIRECTORY
FAILURE expected_to match_regex^/Users/agoomany/TRAVAIL/42ShellTester/tmp/TOKEN201612111732_OTHERDIRECTORY$
01: ~-/TOKEN201612111732_OTHERDIRECTORYSTDERR: (no output)