Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 914 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 914 Bytes

test-helper files for CP4

  1. 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;
    }
    
  2. 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).

  3. cd to the directory of your executable (e.g., bin directory).

  4. Execute the following command (testcase information are available in cp4_tester.sh):
    bash cp4_tester.sh ./<executable> <testcase-number>

  5. 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.