This release is a pre-release and may not be stable for production use.
DoubleCheck
A library for property-based testing in two different ways:
“QuickCheck” - randomly generated inputs
“SmallCheck” - exhaustively enumerated inputs
These testing approaches are named for the pioneering Haskell libraries. The two approaches truly shine when used together - once a property is found to be refutable by some probably-huge-and-crazy random input, it is often worth investing the CPU time to find the _smallest_ counterexample.
This library is a brand new work-in-progress (see commit log for dates) with known issues:
Does not have randomly generated strings just yet.
No existential quantification yet, but smallcheck does allow it!
Needs more thorough testing.
Needs to be able to test that a property always throws an exception.
Needs lots more combinators.
Needs one-liner interface rather than checking status of test cases.
Installation & Usage
(TODO: Describe in more detail. For now, read doublecheck/gen.py and doublecheck/prop.py)
$ pip install doublecheck $ python >>> from doublecheck import * >>> ForAll(lambda i: i > 0, PosInts()).quickcheck(100000).status ‘Certain’
Copyright & License
Copyright 2012- Kenneth Knowles
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for doublecheck 0.1pre2012-05-08T10-01-13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doublecheck-0.1pre2012-05-08T10-01-13.tar.gz | 4.8 kB | Without provenance | Details for doublecheck-0.1pre2012-05-08T10-01-13.tar.gz |
Release files / doublecheck-0.1pre2012-05-08T10-01-13.tar.gz
| Download URL | doublecheck-0.1pre2012-05-08T10-01-13.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3317173e8d297d327bdff268e3b78c5ffb791d66dea3569abed25ff25765306c
|
|
BLAKE2b-256 checksum How to use checksums |
0877c4a44bd4322e0df6bd5cf313c22d9dee9cfa7068626dc12706b3f0000972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for doublecheck 0.1pre2012-05-08T10-01-13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.