Skip to content

Make reversed ranges invalid - #75

Merged
blakeembrey merged 3 commits into
masterfrom
be/reversed-ranges
Nov 18, 2026
Merged

blakeembrey merged 3 commits into
masterfrom
be/reversed-ranges

Conversation

@blakeembrey

Copy link
Copy Markdown
Member

An int-range is invalid if the last-pos value is present and less than the first-pos.

And

A valid ranges-specifier is "satisfiable" if it contains at least one range-spec that is satisfiable, as defined by the indicated range-unit. Otherwise, the ranges-specifier is "unsatisfiable".

It seems like this is a reasonable correctness fix, unsatisfiable still returns code: 2. With the current API I don't think anyone will check that though, it's only diagnostic, since any ranges should be returned that were satisfied.

@blakeembrey
blakeembrey requested review from a team and bjohansebas November 17, 2026 20:50
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9f73ecf) to head (dfc8efc).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #75   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           98       104    +6     
  Branches        31        34    +3     
=========================================
+ Hits            98       104    +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blakeembrey
blakeembrey merged commit 4c55cd7 into master Nov 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant