Archived posts, use them to search

Re: How can I testing multiple test cases?

by Juan Carlos Rodríguez-del-Pino -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Jonghwa Park,
At this moment we are not planning to support files as input and/or output.
have you give a chance to the default test program of VPL?
I don't know the detailed format of the test case of Hustoj.
Each pair of files is a test case or is a set of test case for a problem?
I guess that the reason to use files as input of test case are:
1) The size/number of the files is too large to use one common file of cases.
2) The files have a binary content
3) Your test cases are legacy and has this format

Notice that VPL was not intended as a judge system. It (the execution system) does not collect information about the resources used by the tested program. In the future VPL might collect this information to be used as grade source.
If Each pair of files is a test case, the way to adapt the format from Hustoj data is generating a vpl_evaluate.cases with exact match test (double quote output definition) and this content
--------------------
Case = 1
input=content of the 1.in file, don't use quotes as in output

output="content of the 1.out file in double quotes
"
Case = 2
input =content of the 2.in file, don't use quotes as in output

output= "content of the 2.out file in double quotes
"
Case = 3
input =content of the 3.in file, don't use quotes as in output

output= "content of the 3.out file in double quotes
"
--------------------

Notice that the generation of the vpl_evaluate.cases file from the “*.in” and “*.out” files may be automated.

Best regards,
Juan Carlos.