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

    Function runChecker

    • Runs a checker program to validate solution output against expected answer. The checker receives three files: input, output (participant's answer), and answer (jury's answer).

      Parameters

      • execCommand: string

        Path to compiled checker executable

      • inputFilePath: string

        Path to test input file

      • outputFilePath: string

        Path to participant's output file

      • answerFilePath: string

        Path to jury's answer file

      • expectedVerdict: CheckerVerdict

        Expected verdict (OK, WA, PE)

      Returns Promise<void>

      If checker verdict doesn't match expected verdict

      If checker exceeds time or memory limits (exits process)

      await runChecker(
      './checker',
      'tests/test1.txt',
      'output.txt',
      'answer.txt',
      'OK'
      );