Skip to content

Commit

Permalink
support-multi-output (13) : fix
Browse files Browse the repository at this point in the history
  • Loading branch information
logic-finder committed Jun 24, 2024
1 parent a3e95c6 commit 9edce45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void check_correct_execution(int argc);
* @brief gets testcases, write the length of testcases via *testcases_len_ptr, and returns the pointer to the first testcase.
*
* @param testcase_len_ptr a pointer to testcases_len
* @return a pointer to an array of testcases
* @return a pointer to the first testcase
*
* @details The return value of this function must be `free`d once it's no longer needed.
*/
Expand All @@ -39,8 +39,8 @@ testcase *acquire_testcases(int *testcases_len_ptr);
/**
* @brief conducts tests with testcases.
*
* @param testcases a pointer to an array of testcases
* @param testcases_len the length of the testcases array
* @param testcases a pointer to the first testcase to test
* @param testcases_len the number of testcases to test
* @param executable_name the name of the program to be tested
* @return true if every testcases were successful; otherwise false.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/test_maker.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void preprocess_testcase(const char *src_name, const char *dest_name) {

int lengths[TESTCASE_LEN];

count_outputs_len(lengths,src);
count_outputs_len(lengths, src);
rewind(src);
write_modified_testcase(lengths, src, dest);

Expand Down
4 changes: 2 additions & 2 deletions test/test_maker.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ void preprocess_testcase(const char *src_name, const char *dest_name);
/**
* @brief counts the length of the 'outputs' array that each testcase has and writes it to lengths[i].
*
* @param lengths a pointer to an array which will contain how many expected outputs each testcase has
* @param lengths an array of integers which will contain how many expected outputs each testcase has
* @param src an original testcase file
*/
void count_outputs_len(int lengths[], FILE *src);

/**
* @brief writes a modified testcase file.
*
* @param lengths a pointer to an array containing how many expected outputs each testcase has
* @param lengths an array of integers containing how many expected outputs each testcase has
* @param src an original testcase file
* @param dest a modified testcase file
*/
Expand Down

0 comments on commit 9edce45

Please sign in to comment.