rclanget / 42sh

1 stars 0 forks source link

bonuses/tilde-expansion/004-expanded-with-PWD-2 #89

Closed Wolfthuk closed 7 years ago

Wolfthuk commented 7 years ago

bonuses/tilde-expansion/004-expanded-with-PWD-2 (FAILED)

Description: The purpose of this test is to check that the symbol tilde ~ may be expanded with the environment variable PWD when followed by the symbol +.

Before test: 01: export "HOME=/TOKEN201612111732"

STDIN: 01: ./write_on_stdout ~+/TOKEN201612111732_SUBDIRECTORY

STDOUT: SUCCESS expected_to_not match_regex ~+/TOKEN201612111732_SUBDIRECTORY SUCCESS expected_to_not match_regex /TOKEN201612111732+/TOKEN201612111732_SUBDIRECTORY FAILURE expected_to match_regex ^/Users/agoomany/TRAVAIL/42ShellTester/tmp/TOKEN201612111732_SUBDIRECTORY$ 01: ~+/TOKEN201612111732_SUBDIRECTORY

STDERR: (no output)