how to add multi tests in gym with problem.xml

Правка en2, от xzm2024, 2019-11-15 05:49:39

I write these in problem.xml

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<problem>
    <names>
        <name language="english" main="true" value="LytchenLovesJSON"/>
    </names>
    <judging cpu-name="Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz" cpu-speed="3600" input-file="" output-file="">
        <testset name="tests">
            <time-limit>1000</time-limit>
            <memory-limit>134217728</memory-limit>
            <test-count>12</test-count>
            <input-path-pattern>tests/%02d.in</input-path-pattern>
            <answer-path-pattern>tests/%02d.ans</answer-path-pattern>
            <tests>
                <test method="manual"/>
            </tests>
        </testset>
    </judging>
    <files>
        <resources>
            <file path="files/testlib.h" type="h.g++"/>
        </resources>
    </files>
    <assets>
        <checker type="testlib">
            <source path="files/check.cpp" type="cpp.g++"/>
            <copy path="check.cpp" type="cpp.g++"/>
        </checker>
    </assets>
    <properties>
        <property name="tests-wellformed" value="false"/>
    </properties>
</problem>

and the tree of this problem folder is this:

│  check.cpp
│  problem.xml
│
├─files
│      check.cpp
│      testlib.h
│
├─solutions
└─tests
        01.ans
        01.in
        02.ans
        02.in
        03.ans
        03.in
        04.ans
        04.in
        05.ans
        05.in
        06.ans
        06.in
        07.ans
        07.in
        08.ans
        08.in
        09.ans
        09.in
        10.ans
        10.in
        11.ans
        11.in
        12.ans
        12.in

however, when I try to update contest, it says User {name='xzm2019'}: XML-descriptor of the problem 'C' has illegal format: The specified test count in testset 'tests' is 12, but actual number of tests is 1.

who can help me, what's wrong in these tests. thank you.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский xzm2024 2019-11-15 06:27:33 66 Tiny change: 'when I upd' -> 'I wait for some times and it auto solved. Thank you!\n\n\nwhen I upd'
en4 Английский xzm2024 2019-11-15 06:23:21 2 Tiny change: 'it says:\n~~~~~\nC' -> 'it says:\n\n~~~~~\nC'
en3 Английский xzm2024 2019-11-15 06:23:07 2305
en2 Английский xzm2024 2019-11-15 05:49:39 502
en1 Английский xzm2024 2019-11-15 05:46:28 1578 Initial revision (published)