This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-proptest v0.2.0
Released: 2026-11-09 · Commit: e095dc4 · Previous: v0.1.1
What it does
Property tests for Mojo in 149 lines: seeded generators, greedy shrinking, and a failure that names
the seed, the case number and the minimal value. check(gen, prop, n=500, seed=1).
Highlights
- The import is now
mproptest, so it installs beside bpr/proptest, which imports asproptest. The package keeps its name,mojo-proptest.
Changes
Changed
- Breaking:
from proptest import ...becomesfrom mproptest import ...; the precompiled module ismproptest.mojoc. - The failure message starts with
mproptest: falsified at case.
Verified
| Check | Result |
|---|---|
scripts/ci.sh (planted bugs found and shrunk) |
PASS all |
scripts/selfcheck.sh (10 mutants) |
PASS selfcheck |
readme-audit.sh (mojo-libs) |
PASS readme: 36 libraries |
pkg-conda dry run on the version commit (H1-H3,H6) |
PASS: mojo-proptest-0.2.0-hb0f4dca_0.conda |
Known limits
- No integrated shrinking, test database or stateful testing: see docs/design.md.
Upgrade / run
pixi add mojo-proptest==0.2.0
sed -i 's/from proptest import/from mproptest import/' your_tests.mojo
Commits
e095dc4build: bump version to 0.2.05eb3281feat!: import is mproptest