Closed RagnarGrootKoerkamp closed 1 year ago
For backwards compatibility, we can just substitute the {name}
argument for testcase
everywhere.
As far as i can see name
is already always testcase
since #261 (However problemtools likely handles this differently?).
Right, that's fine from our side. But what I want is that generators can just always write testcase.*
, without having to pass the {name}
. The current spec requires them to write to the actual name of the testcase, for which this {name}
is needed, so that is mostly the part that needs changing.
but that is just a change in the spec, no code needs to be changed (from our side)? ^^
Hmm yes pretty much true. I'll add some tests and update doc/generators.yaml
Currently generators that write
.in
and.ans
(and other) files are required to write them toname.*
. But this requires passing the testcase name only for the purpose of setting the output filename:Instead, it would be simpler if
gen.py
could just write totestcase.in
,testcase.ans
, and generallytestcase.*
, since all generators are run in a temporary directory anyway. Then we can simply do