Tests a solution against the main correct solution using the checker.
Runs both solutions on all testsets, then compares outputs with the checker.
Validates that the solution behaves according to its expected type (TLE, WA, etc.).
Note: Solutions and checker must be compiled before calling this function.
Parameters
solutionName: string
Name of solution to test
Returns Promise<void>
Throws
If main solution doesn't exist
Throws
If target solution doesn't exist
Throws
If main solution fails
Throws
If comparison fails
Example
// From actions.ts testWhat command awaittestSolutionAgainstMainCorrect('wa-solution'); // Validates that wa-solution gets WA on at least one test
Tests a solution against the main correct solution using the checker. Runs both solutions on all testsets, then compares outputs with the checker. Validates that the solution behaves according to its expected type (TLE, WA, etc.). Note: Solutions and checker must be compiled before calling this function.