Repository navigation
Releases
mojo-proptest v0.2.0
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
mojo-proptest v0.1.1
mojo-proptest v0.1.1
Released: 2026-11-08 · Commit: 179a569 · Previous: v0.1.0
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
- Packaging only: the conda recipe pins
mojo-compilerto the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.
Changes
Changed
recipe.yaml:mojo-compilerrun dependency pinned to the build's minor (<1.3.0a0).
Verified
| Check | Result |
|---|---|
pkg-conda dry run on the version commit (H1-H3,H6) |
PASS: mojo-proptest-0.1.1-hb0f4dca_0.conda |
Known limits
- Packages are built on one Mojo minor only; see the package protocol.
Upgrade / run
None: no API change.
Commits
179a569build: bump version to 0.1.191ecc70build: recipe pins mojo-compiler to the build's minore6f2168docs: CHANGELOG names no home pathec241bdchore(license): fill Apache-2.0 copyright notice
mojo-proptest v0.1.0
mojo-proptest v0.1.0
Released: 2026-11-04 · Commit: 38f5898 · Previous: first release
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
- A failure replays:
falsified at case i (seed=s); minimal: v, and case i depends only on (seed, i). - Generators that shrink:
Ints,Byte,Floats(a quarter special values),Strings(UTF-8 safe),Lists,OneOf. - Shrinking is bounded at 10,000 candidates, so a bad custom
Gencannot loop forever.
Changes
First release, no earlier version.
Verified
| Check | Result |
|---|---|
scripts/ci.sh (check.sh): five planted bugs found and shrunk to 10, 4611686018427387904, "é", [], nan; negatives shrink; 10,000 passing cases; seed replay |
PASS all |
scripts/selfcheck.sh: 10 mutants (6 library, 4 planted-bug fixes), gate fails on each |
PASS selfcheck |
Known limits
- One argument per property; several need
Listsor a custom generator. - Shrinking is greedy: the minimal value is a local minimum, not always the global one.
- Mojo 1.2 only (
mojo>=1.2.0,<1.3).
Upgrade / run
mojo run -I src app.mojo
Commits
38f5898ci: badge row and checks badgeb69ca49docs(skills): add mojo-proptest skill38c9951feat: seeded generators, shrinking and check in pure Mojo