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

Releases

mojo-proptest v0.2.0

Choose a tag to compare

@amarbarosys amarbarosys released this 09 Nov 00:55

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

mojo-proptest v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:48

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-compiler to 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-compiler run 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

  • 179a569 build: bump version to 0.1.1
  • 91ecc70 build: recipe pins mojo-compiler to the build's minor
  • e6f2168 docs: CHANGELOG names no home path
  • ec241bd chore(license): fill Apache-2.0 copyright notice

mojo-proptest v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:17

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 Gen cannot 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 Lists or 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

  • 38f5898 ci: badge row and checks badge
  • b69ca49 docs(skills): add mojo-proptest skill
  • 38c9951 feat: seeded generators, shrinking and check in pure Mojo