Skip to main content

A testcase generator for online judges.

Project description

OjTest - A testcase generator for online judges.

Install pip3 install oj_testcase
If you find this project helpful, star it!


Functions

1. generate a random list consists of integer values

  1. rand_int_list
  2. rand_int_list_sorted
  3. rand_int_list_unique
  4. rand_int_list_sorted_unique

2. generate a random string

  1. rand_str_alphabetic
  2. rand_str_alphabetic_lower
  3. rand_str_alphabetic_capital
  4. rand_str_digital

Usage

1. get a string consists of alphabets

import ojtest as oj

oj.rand_str_alphabetic(50)
# "UfAdzVUbzTxsVvLzOIgjPoMULRymXynTceMdqaxeQFLASxWCEn"

2. get a list consists of random integer values

import ojtest as oj

oj.rand_int_list(0, 100, 10)
# [32, 74, 60, 33, 31, 84, 64, 43, 63, 34]

3. get a list consists of sorted random integer values

import ojtest as oj

oj.rand_int_list_sorted(0, 100, 10)
# [5, 19, 35, 37, 46, 64, 69, 75, 78, 91]

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

ojtest-0.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

ojtest-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ojtest-0.0.2.tar.gz.

File metadata

  • Download URL: ojtest-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ojtest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b25b15afcbd0f7b793850769e61e169bb2a42045fd3918e53813c4773fa05b05
MD5 7e72a442532dd74063b353cebb8d918f
BLAKE2b-256 6d0b8d9ba3167d1520c0aba349988331bac38a684150d2808af09cfe82d7bb5b

See more details on using hashes here.

File details

Details for the file ojtest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ojtest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ojtest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 197b62d72588465a7571c246623a07ea8c0b7da6341abfe44a7cb0194a0a4b30
MD5 6a3124cf823b715f9d9e2881383c9e95
BLAKE2b-256 48fcb9895e75c71b21f897f03a82a8b0f9cb4cc3ea9bfcdce78947076791e84e

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