Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

mojo-proptest v0.2.0

Latest

Choose a tag to compare

@amarbarosys amarbarosys released this 09 Nov 00:55
· 3 commits to main since this release

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 as proptest. The package keeps its name, mojo-proptest.

Changes

Changed

  • Breaking: from proptest import ... becomes from mproptest import ...; the precompiled module is mproptest.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

  • e095dc4 build: bump version to 0.2.0
  • 5eb3281 feat!: import is mproptest