-
If utilizing Professor Lewis's main file, ensure that in the main function, the 'silent' parameter of accept_commands(istream &is, bool silent, bool echo) is set to true, and then proceed to compile.
int main() { accept_commands(cin, true , false); return 0; }
-
Copy the bash file (cp4_tester.sh) and the expect file (cp4_subroutine.exp) to the same directory as your executable (e.g., bin directory).
-
cd to the directory of your executable (e.g., bin directory).
-
Execute the following command (testcase information are available in cp4_tester.sh):
bash cp4_tester.sh ./<executable> <testcase-number> -
Refer to the 'EXPECTED OUTPUT DESCRIPTION' output and verify if your output contains the expected result.
Please let us know if you have any questions or concerns about the test-cases.