-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruby 2.7: Better support of Integer#[] with range arguments
- Loading branch information
Showing
3 changed files
with
68 additions
and
16 deletions.
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