Skip to content

Binghamton-University-CS/CP4_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages