Skip to content

compareRuns accepts negative/NaN tolerance #30

Description

@royalpinto007

Problem

A negative or NaN tolerance inverts verdict logic: negative flags even improvements as regressed, NaN disables regression detection entirely.

Where

src/compare.ts (compareRuns, tolerance option) fed raw from src/cli/index.ts.

Acceptance

Add a failing test first asserting compareRuns with tolerance: -0.5 throws or clamps. Then fix.

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions