-
Notifications
You must be signed in to change notification settings - Fork 185
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
Ruby 2.7: Better support of Integer#[] with range arguments #2182
Merged
graalvmbot
merged 7 commits into
oracle:master
from
gogainda:feature/ruby2.7_better_support_for_integer_with_range_arguments
Dec 18, 2020
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f77f2a2
Ruby 2.7: Better support of Integer#[] with range arguments
gogainda cda845a
Ruby 2.7: Better support of Integer#[] with range arguments - Fix lin…
gogainda 5a7bbb8
Ruby 2.7: first approach
gogainda 61f2703
Ruby 2.7: rewrite some logic
gogainda 1382260
Ruby 2.7: rewrite some logic
gogainda a260037
Ruby 2.7: extend logic
gogainda f427326
Ruby 2.7: address review comments
gogainda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
fails:Integer#[] fixnum when index and length passed returns specified number of bits from specified position | ||
fails:Integer#[] fixnum when index and length passed ensures n[i, len] equals to (n >> i) & ((1 << len) - 1) | ||
fails:Integer#[] fixnum when index and length passed moves start position to the most significant bits when negative index passed | ||
fails:Integer#[] fixnum when index and length passed ignores negative length | ||
fails:Integer#[] fixnum when range passed returns bits specified by range | ||
fails:Integer#[] fixnum when range passed ensures n[i..j] equals to (n >> i) & ((1 << (j - i + 1)) - 1) | ||
fails:Integer#[] fixnum when range passed ensures n[i..] equals to (n >> i) | ||
fails:Integer#[] fixnum when range passed moves lower boundary to the most significant bits when negative value passed | ||
fails:Integer#[] fixnum when range passed ignores negative upper boundary | ||
fails:Integer#[] fixnum when range passed ignores upper boundary smaller than lower boundary | ||
fails:Integer#[] fixnum when range passed raises FloatDomainError if any boundary is infinity | ||
fails:Integer#[] fixnum when range passed when passed (..i) returns 0 if all i bits equal 0 | ||
fails:Integer#[] fixnum when range passed when passed (..i) raises ArgumentError if any of i bit equals 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eregon not sure that it's safe to hardcode this value, but I did't find better solution, mb you know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems odd to me we even need this value to implement Integer#[], do you know which arguments return it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this anymore.