Skip to content

Property-based tests for the window math #12

Description

@Alhaji-naira

Summary

Add proptest-based tests for policy::evaluate_spend asserting invariants (e.g. "an allowed spend never pushes the window total over max_per_window"; "an expired window always resets"). Complements the existing table-driven tests.

Acceptance criteria

  • proptest dev-dependency added
  • At least two invariants encoded
  • CI green

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions