This is a tool to easily automate the verify process of your code library for competitive programming.
Please read this: https://online-judge-tools.github.io/verification-helper/installer.html
pip3 install online-judge-verify-helper
Python 3.6 or above is required.
First, specify the problem URL to be used to verify the library in the file including
.test. in its path (e.g. for C++, write
#define PROBLEM "https://judge.yosupo.jp/problem/unionfind" in a file like
example.test.cpp; see the reference for other languages). Then, run the following command to check if the verification can be performed.
include statements in your files in the form of
#include "foo.hpp" can be expanded,
The function can be used by running the following command:
If your competitive programming library resides outside the current directory, please specify the flag in the form of
-I path/to/your/library. I recommend make shell aliases like
alias oj-bundle='\oj-bundle -I path/to/your/library'.
Include guards like
#pragma once are partially supported. If you have files that will be included multiple times but you only want them to appear once in the generated code, add
#pragma once to the first line of the files.
Run the following command to generate documentation in
.verify-helper/markdown/. Example: https://online-judge-tools.github.io/verification-helper/
If documentation generators like Doxygen are found when generating documentation, they will be automatically used.
TeX expressions like
$(N \sum_i A_i)$ are also supported by the MathJax library.
For the details, see the reference.
online-judge-verify-helperfrom GitHub Actions (Details, in Japanese).