Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Ports state-delta and property-based testing to non-Python languages, using each language's native test, generator, and shrinking libraries.
45% 86%+41 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 10 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
This optional implementation guide is not a requirement to port an nWave API.
Native discovery and applicability live in nw-test-design-mandates; its
layered-mechanics module owns observation laws. Use incumbent native assertions,
generators, shrinking/replay and helpers first. Matching nw-pbt-* guidance
loads on need; unlisted languages use their real native tooling, not an
EVIDENCE_GAP merely because no adapter is shipped. Never borrow Python as a
substitute. The recipes below illustrate one optional helper implementation.
Unlisted languages (C, C++, OCaml, etc.) use their own native test, generator, shrinker and replay libraries; no Python-derived shim is imposed.
Illustrative Python API contract (semantics reference only; not a required API, file path or predicate count; see nwave_ai.state_delta.matcher):
def assert_state_delta(
before: Mapping[str, Any],
after: Mapping[str, Any],
universe: set[str],
expected: Mapping[str, Predicate],
*,
strict: bool = False,
) -> None: ...
Predicate = Callable[[Any, Any], bool]
# Illustrative predicate factories (not a required set or count):
def prepended_with(prefix: str, sep: str = ":") -> Predicate: ...
def appended_with(suffix: str, sep: str = ":") -> Predicate: ...
def unchanged() -> Predicate: ...
def set_to(value: Any) -> Predicate: ...
def containing(substring: str) -> Predicate: ...
def normalized_to(normalizer: Callable[[Any], Any]) -> Predicate: ...
def idempotent_after(prefix: str, sep: str = ":") -> Predicate: ...
def legacy_healed(detector: Callable[[Any], bool], healed_check: Callable[[Any], bool]) -> Predicate: ...
Next to this one in the catalogue, plus more from the same author.