-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve integer shrinking #743
Open
jonaskoelker
wants to merge
8
commits into
typelevel:main
Choose a base branch
from
jonaskoelker:improve-integer-shrinking
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Improve integer shrinking #743
jonaskoelker
wants to merge
8
commits into
typelevel:main
from
jonaskoelker:improve-integer-shrinking
Commits on Dec 29, 2020
-
Test that numeric shrinkers are acyclic, via a strict partial order
We all know that we shrink towards 0 and from negative to positive. Formalizing this is simple and strengthens the typelevel#244 regression tests.
Configuration menu - View commit details
-
Copy full SHA for 4590703 - Browse repository at this point
Copy the full SHA 4590703View commit details
Commits on Dec 30, 2020
-
Optimize shrinking of integral types
So long as the test case keeps succeeding, shrink to the next query value of a binary search that searches for the smallest failing value. That is, try the midpoint between the most recent test failure and the previous shrunk value: x => x * (1 - 1/2^k) for natural numbers k. For example, `shrink(32).toList == List(0, 16, 24, 28, 30, 31)`.
Configuration menu - View commit details
-
Copy full SHA for ae498a3 - Browse repository at this point
Copy the full SHA ae498a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5a3434 - Browse repository at this point
Copy the full SHA f5a3434View commit details
Commits on Mar 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 374db9f - Browse repository at this point
Copy the full SHA 374db9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85c88ee - Browse repository at this point
Copy the full SHA 85c88eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 294a250 - Browse repository at this point
Copy the full SHA 294a250View commit details -
Configuration menu - View commit details
-
Copy full SHA for e330902 - Browse repository at this point
Copy the full SHA e330902View commit details
Commits on Jul 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e893cd1 - Browse repository at this point
Copy the full SHA e893cd1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.