clintest
clintest is a Python framework that enables you to write efficient unit tests for clingo programs quickly.
Devising and running multiple tests is a simple as:
from clintest.test import Assert, And
from clintest.quantifier import All, Any
from clintest.assertion import Contains
from clintest.solver import Clingo
solver = Clingo("0", "a. {b}.")
test = And(
Assert(Any(), Contains("a")),
Assert(All(), Contains("b")),
Assert(Any(), Contains("c")),
)
solver.solve(test)
test.assert_()
For details, please read the documentation.
Metadata
Release files for clintest 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clintest-0.5.0.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clintest-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.9 kB
Release files / clintest-0.5.0.tar.gz
| Download URL | clintest-0.5.0.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be5d82625be6c4dbbcabd9e89909c4619b21353ea235b279904764083eac281d
|
|
BLAKE2b-256 checksum How to use checksums |
36c01c7760913203bf9a617e776c7bf73c675933b4270ba0dd41ea82cce68880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / clintest-0.5.0-py3-none-any.whl
| Download URL | clintest-0.5.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff2f1ae6690e1a7929d50d920320765d8b7a3c5af85940ae0bec72a046861867
|
|
BLAKE2b-256 checksum How to use checksums |
9d2ca72ff37346f871d8f6b85d3edbe727ad4dc0baa35c85500a33e7d4b0e7e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|