Polyman Documentation - v3.1.0
    Preparing search index...

    Interface SelfTestCase

    One validator or checker self-test inside a SelfTestReport. SelfTestCase

    interface SelfTestCase {
        index: number;
        expected: string;
        actual: string | null;
        exitCode?: number;
        ok: boolean;
        message: string;
    }
    Index
    index: number

    1-based position of the case in the tests file

    expected: string

    Verdict the tests file asks for (the checker short forms WA / PE are written as WRONG_ANSWER / PRESENTATION_ERROR)

    actual: string | null

    Verdict the program gave, or ERROR when it could not run at all. null for a checker that exited with a code that is not OK, WA, PE or a crash (4, 5, 7, 8, 16 to 127): see exitCode

    exitCode?: number

    Exit code of the checker. Only set when actual is null

    ok: boolean

    Whether polyman accepted the case

    message: string

    What the program printed to stderr, or why the case failed