Skip to content

Feature Request: Check for failing line number when running validator tests #576

@Anachor

Description

@Anachor

Currently when defining a validator test, one can specify the verdict (VALID/INVALID). It would be useful if in addition to a verdict, one can also specify a line number, on which the validator should fail. This is particularly useful when testing for bounds.

Example: Suppose the problem accepts input in the format

n
a1 a2 a3 ..... an

where the bound on n is 1 <= n <= 10^5.

Since I can't really input 10^6 number in a test, I end up generating a test like

100001
1

And checking if the validator fails on the first line (and has the correct message). This is especially problematic when the bound changes and we forget to update the validator tests since it's easy to skip over the error messages.

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