# kmyk / online-judge-verify-helper

a testing framework for snippet libraries used in competitive programming
Python JavaScript Other
kmyk Merge pull request #110 from southball/master
Add English translation for installer.md
Latest commit 1ca9500 Jan 28, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Jan 23, 2020
.verify-helper Jan 28, 2020
examples Jan 23, 2020
onlinejudge_verify Jan 28, 2020
onlinejudge_verify_resources Jan 23, 2020
tests Jan 23, 2020
example.test.cpp Nov 23, 2019
setup.cfg Dec 13, 2019
setup.py Jan 23, 2020

# Online Judge Verify Helper

## What is this?

This is a tool to easily automate the verify process of your code library for competitive programming.

## How to use

### Running the program

$pip3 install online-judge-verify-helper #### Automating the verification First, add the problem URL to be used to verify the library in the file ending with .test.cpp as follows (#define PROBLEM "https://judge.yosupo.jp/problem/unionfind"). Then, run the following command to check if the verification can be performed. $ oj-verify run

Currently, problems on Library Checker and Aizu Online Judge are supported. It is probable that problems on HackerRank can also be used, but it is not guaranteed at the moment.

Other judging platforms do not currently publish the test cases in usable forms, and so are not currently supported.

#### Autoexpansion of #includes

The include statements in your files in the form of #include "foo.hpp" can be expanded, similar to the functionality provided by webpack for JavaScript. This is to solve the problems that most online judges do not support submitting multiple files. The function can be used by running the following command:

$oj-verify bundle main.cpp If your competitive programming library resides outside the current directory, please specify the flag in the form of -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. #### Generating Documentation Run the following command to generate documentation in .verify-helper/markdown/. Example: https://kmyk.github.io/online-judge-verify-helper/ $ oj-verify docs

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. (TODO: document what commands are recognized)

## Authors

You can’t perform that action at this time.