Polyman Documentation - v2.2.2
    Preparing search index...

    Function testSolutionAgainstMainCorrect

    • 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>

      If main solution doesn't exist

      If target solution doesn't exist

      If main solution fails

      If comparison fails

      // From actions.ts testWhat command
      await testSolutionAgainstMainCorrect('wa-solution');
      // Validates that wa-solution gets WA on at least one test