The test file is easiest for a human to read and understand if it contains the following sections in sequence:
- test module doccomment
- imports
process_X_case implementations
- tests
The exercise update command should ensure that the test output file conforms to that sequencing.
From the exercise tool's point of view, #685 requires parsing the test file to determine which tests exist, and what bytes they contain, anyway. Given that information, it should not be difficult to insert new process_X_case implementations at the end of the appropriate section.
The test file is easiest for a human to read and understand if it contains the following sections in sequence:
process_X_caseimplementationsThe
exercise updatecommand should ensure that the test output file conforms to that sequencing.From the exercise tool's point of view, #685 requires parsing the test file to determine which tests exist, and what bytes they contain, anyway. Given that information, it should not be difficult to insert new
process_X_caseimplementations at the end of the appropriate section.