You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes template files like examples/abc123_a.pyexamples/data/abc123_a.sample-1.inexamples/data/abc123_a.sample-1.outexamples/data/abc123_a.large.generator.pyexamples/data/abc123_a.solver.cpp.
Write a Python script (e.g. examples/abc123_a.py) which Jikka processes
Write a generator of input cases (e.g. examples/data/abc123_a.large.generator.py) and an expected solution (e.g. examples/data/abc123_a.solver.cpp)
When you add another script for a problem which already has test cases, please edit examples/data/METADATA.json instead.
When you use a problem of Library Checker or Jikka Judge, please edit examples/data/METADATA.json instead.
optional: When you write a Python script for a non-existing problem, please consider adding it to Jikka Judge.
You can use Python instead for expected solutions. Delete examples/data/abc123_a.solver.cpp and create examples/data/abc123_a.solver.py
When the generated C++ code gets WA, move the Python script and test cases to examples/wip/. You can skip making test cases.
When the generated C++ code gets TLE, move the Python script to examples/wip/tle/. Scripts under examples/wip/tle/ still used to check non-WA.
optional: add more test cases like examples/data/abc123_a.hand-1.inexamples/data/abc123_a.hand-1.out
Description / 説明
We want to add more Python scripts to
examples/
directory. They are used for testing ($ python3 scripts/integration_tests.py
).examples/
の中に置いてある Python スクリプトは自動で実行されてテストに使われますが、これをもっと増やしたい。日々のコンテストのついでにコツコツに追加したり、ABC の B, C あたりをまとめて Python で解いて
examples/
に追加するのをしないとだめそう。How to add a script and test cases / スクリプトとテストケース追加の手順
$ python3 scripts/add_test_cases.py URL
$ python3 scripts/add_test_cases.py https://atcoder.jp/contests/abc123_a
examples/abc123_a.py
examples/data/abc123_a.sample-1.in
examples/data/abc123_a.sample-1.out
examples/data/abc123_a.large.generator.py
examples/data/abc123_a.solver.cpp
.examples/abc123_a.py
) which Jikka processesexamples/data/abc123_a.large.generator.py
) and an expected solution (e.g.examples/data/abc123_a.solver.cpp
)examples/data/METADATA.json
instead.examples/data/METADATA.json
instead.examples/data/abc123_a.solver.cpp
and createexamples/data/abc123_a.solver.py
examples/wip/
. You can skip making test cases.examples/wip/tle/
. Scripts underexamples/wip/tle/
still used to check non-WA.examples/data/abc123_a.hand-1.in
examples/data/abc123_a.hand-1.out
Motivation / 動機
Testing is important.
The text was updated successfully, but these errors were encountered: