Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support externally-generated test cases #132

Open
fushar opened this issue Apr 9, 2017 · 0 comments
Open

Support externally-generated test cases #132

fushar opened this issue Apr 9, 2017 · 0 comments
Labels

Comments

@fushar
Copy link
Member

fushar commented Apr 9, 2017

Often, when we prepare a contest, some author proposes a problem with its corresponding test cases, generated by their own way. Usually, there are different scenarios:

  1. Trust the problem author that they have validated that the test cases are valid.
  2. Convert their generator into tcframe format.
  3. Write an external validator and validate the test cases (without tcframe at all).

This issue proposes a fourth way: support external test case in test case specification, so that we can still declare the input format for validation, etc. Example syntax:

void TestCases() {
    EXTERNAL_CASE("external/tree_1.in", "external/tree_1.ans");
}
@fushar fushar added the spec label Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant