Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kuroko

Xvezda9MIT1.1.0

Simple local judgement tool

tests, testcase, judgement, problem solving, competitive programming, cli, command, scaffolding

readme

Kuroko

Version License

ジャッジメントですの!

Simple local offline judgement tool for competitive programming.

Installation

# npm
npm install -g kuroko

# yarn
yarn global add kuroko

Usage

Basic usage:

$ echo 5 | ./factorial
120
$ # Create test cases
$ echo 5 > 1.in
$ echo 120 > 1.out
$ # Run test
$ kuroko factorial
success - Test case `1.in` => `1.out` correct

Use scaffolding:

$ # Create test inputs
$ echo foo > foo.in
$ echo bar > bar.in
$ echo baz > baz.in
$ # Let's make echo script
$ cat <<'EOF' > echo.sh && chmod +x echo.sh
#!/bin/sh
read line
echo $line
EOF
$ # We can use `cat` command to verify script
$ kuroko --scaffold=cat ./echo.sh
success - Test case `bar.in` => `cat < bar.in` correct
success - Test case `baz.in` => `cat < baz.in` correct
success - Test case `foo.in` => `cat < foo.in` correct