+ # Running the test code in a subshell to make it possible to catch and report
+ # errors that occur within the cdproject command. This is a problem only for
+ # z-shell. When running the test code below in zsh, it is possible that an error
+ # will occur causing the test code to short circuit before the assert statement
+ # can be called making the test look as if it completed properly.
mkproject "myproject" >/dev/null 2>&1
- assertSame "$PROJECT_HOME/myproject" "$(pwd)"
+ if [ "$PROJECT_HOME/myproject" != "$(pwd)" ]; then
+ assertTrue 'project path does not equal the present working directory' "[ $? -eq 0 ]"