Skip to main content

A testcase generator for the PNOJ Online Judge.

Project description

pnoj-tg

This is a testcase generator for the PNOJ Online Judge.

It is recommended to install pnoj-tg using the PIP package available on PYPI.

Installation

pip install pnoj-tg

Usage

First create a file named config.yaml. Change the content to suit your needs.

config.yaml:

version: v1
generator:
  input: ["python3", "generator.py"] # command to execute the input generator
  output: ["python3", "solution.py"] # command to execute the solution
testcase:
  batch:
  - name: batch1 # batch name
    points: 100 # points
    testcase:
      name: t-{0} # testcase name, "{0}" is replaced with the testcase number
      num: 10 # number of testcases
  - name: example
    points: 0
    testcase:
      name: sample
      num: 1

Then create two programs generator.py and solution.py. generator.py should generate a random case. solution.py should be the reference solution to the problem you are creating testdata for.

Then run:

pnoj-tg config.yaml

Build Instructions

git clone https://github.com/pnoj/pnoj-tg.git # clones the repository
cd scrapec
pip install . # install pnoj-tg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnoj-tg-20.6.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pnoj_tg-20.6.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pnoj-tg-20.6.0.tar.gz.

File metadata

  • Download URL: pnoj-tg-20.6.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pnoj-tg-20.6.0.tar.gz
Algorithm Hash digest
SHA256 962bdd34c48f2bc3591b04915b18f39b1c5444c2ee8030805959e0e7fef93019
MD5 9136a2119afcf35de2ee2404ea27288a
BLAKE2b-256 b70dcb6f837375d47e830954d41f6bd378fe176cbcfc1eb82141e59a451d7a3c

See more details on using hashes here.

File details

Details for the file pnoj_tg-20.6.0-py3-none-any.whl.

File metadata

  • Download URL: pnoj_tg-20.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pnoj_tg-20.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32e1981b4fcf1241391171246dd9cabb24947b2ad77cd9343de516004967d394
MD5 52dd76f537d980c5ef50d12b9ae2f08d
BLAKE2b-256 9af95221279226ef703c323e0dc9985f3b3301f41d592183e5c4050329c7acbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page