-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
There are actual codes in the repo (example codes). Those codes should be checked by the compiler and unit tests, so that there aren't any errors when we push any commit to the main branch.
So, I propose we use CI/CD for auto testing these programs for any errors.
The tests should perform:
- Compilation check: Verifying if the program compiles successfully.
- Test case checks: Verifying if the program does what it is expected to do.
The compilation check don't require any changes in the repo. But the Test case checks needs:
- Input: Input for the running tests (input data)
- Expected Output: What should the program output (if the output of the program doesn't matches the
expected output, then the test case fails.
Majority of the program will have the input hardcoded (written in their source code), so only the Expected output is of concern.
So, how should we provide the expected output in the repo.
I propose we include a output.txt file for each program
Reactions are currently unavailable