RagnarGrootKoerkamp / BAPCtools

Tools for developing ICPC-style programming contest problems.
GNU General Public License v3.0
50 stars 22 forks source link

Support hardcoding manual testcases directly in `generators.yaml` #220

Closed RagnarGrootKoerkamp closed 1 year ago

RagnarGrootKoerkamp commented 2 years ago

It would be nice to directly write testcases in generators.yaml, to avoid the need for stdout.py and annoying handling of newlines.

Could be somthing like this:

testcase:
  in: >
    5
    1 2 3 4 5

Then the spec changes that instead of input being required, either in or input is required

WIP spec is here: https://github.com/Kattis/problem-package-format/pull/2/files

RagnarGrootKoerkamp commented 1 year ago

Alternatively we could shortcut this as

testcase.in: >
  5
  1 2 3 4 5

More generally we could say that everything with a recognised extension means hardcoded files, and everything without extension invokes a generator or manual testcase

RagnarGrootKoerkamp commented 1 year ago

Moved to #272