Skip to content

When is a testcase rejected? #503

@mzuenni

Description

@mzuenni

The spec currently specifies:

Each tc.in under invalid_input must be rejected by at least one input validator.

There are two problems with this:

  1. I think for input validators we do not specify what rejection means. It should be defined as "exits with exit code 43"
  2. Is it ok for validators to crash if at least one rejected? If yes we may want to mention this.

I would argue in favor of 2.

For example, consider a problem where the input is supposed to be a positive integer x with the extra property that 42 / x is also an integer.
Now one checker can check that its a positive integer and the other can simply check that 42 & x == 0.
However, the second checker will crash if x is zero. IMO this is fine since the other checker already ensures that x is not zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions