-
-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Truffle] Fix converting JRuby arrays to Truffle arrays, so fixing a …
…lot of #unpack
- Loading branch information
1 parent
8271b9c
commit cf0bfa9
Showing
22 changed files
with
12 additions
and
192 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,23 +1,2 @@ | ||
fails:String#unpack with format 'A' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'A' returns an empty string if the input is empty | ||
fails:String#unpack with format 'A' returns empty strings for repeated formats if the input is empty | ||
fails:String#unpack with format 'A' returns an empty string and does not decode any bytes when the count modifier is zero | ||
fails:String#unpack with format 'A' implicitly has a count of one when no count is specified | ||
fails:String#unpack with format 'A' decodes the number of bytes specified by the count modifier | ||
fails:String#unpack with format 'A' decodes the number of bytes specified by the count modifier including whitespace bytes | ||
fails:String#unpack with format 'A' decodes past whitespace bytes when passed the '*' modifier | ||
fails:String#unpack with format 'A' decodes the number of bytes specified by the count modifier including NULL bytes | ||
fails:String#unpack with format 'A' decodes past NULL bytes when passed the '*' modifier | ||
fails:String#unpack with format 'A' removes trailing space and NULL bytes from the decoded string | ||
fails:String#unpack with format 'A' does not remove whitespace other than space | ||
fails:String#unpack with format 'a' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'a' returns an empty string if the input is empty | ||
fails:String#unpack with format 'a' returns empty strings for repeated formats if the input is empty | ||
fails:String#unpack with format 'a' returns an empty string and does not decode any bytes when the count modifier is zero | ||
fails:String#unpack with format 'a' implicitly has a count of one when no count is specified | ||
fails:String#unpack with format 'a' decodes the number of bytes specified by the count modifier | ||
fails:String#unpack with format 'a' decodes the number of bytes specified by the count modifier including whitespace bytes | ||
fails:String#unpack with format 'a' decodes past whitespace bytes when passed the '*' modifier | ||
fails:String#unpack with format 'a' decodes the number of bytes specified by the count modifier including NULL bytes | ||
fails:String#unpack with format 'a' decodes past NULL bytes when passed the '*' modifier | ||
fails:String#unpack with format 'a' does not remove trailing whitespace or NULL bytes from the decoded string |
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,2 +1 @@ | ||
fails:String#unpack with format '@' calls #to_str to coerce the directives string | ||
fails:String#unpack with format '@' positions the read index one beyond the last readable byte in the String |
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,22 +1,2 @@ | ||
fails:String#unpack with format 'B' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'B' decodes one bit from each byte for each format character starting with the most significant bit | ||
fails:String#unpack with format 'B' decodes only the number of bits in the string when passed a count | ||
fails:String#unpack with format 'B' decodes multiple differing bit counts from a single string | ||
fails:String#unpack with format 'B' decodes a directive with a '*' modifier after a directive with a count modifier | ||
fails:String#unpack with format 'B' decodes a directive with a count modifier after a directive with a '*' modifier | ||
fails:String#unpack with format 'B' decodes the number of bits specified by the count modifier | ||
fails:String#unpack with format 'B' decodes all the bits when passed the '*' modifier | ||
fails:String#unpack with format 'B' adds an empty string for each element requested beyond the end of the String | ||
fails:String#unpack with format 'B' ignores NULL bytes between directives | ||
fails:String#unpack with format 'B' ignores spaces between directives | ||
fails:String#unpack with format 'b' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'b' decodes one bit from each byte for each format character starting with the least significant bit | ||
fails:String#unpack with format 'b' decodes only the number of bits in the string when passed a count | ||
fails:String#unpack with format 'b' decodes multiple differing bit counts from a single string | ||
fails:String#unpack with format 'b' decodes a directive with a '*' modifier after a directive with a count modifier | ||
fails:String#unpack with format 'b' decodes a directive with a count modifier after a directive with a '*' modifier | ||
fails:String#unpack with format 'b' decodes the number of bits specified by the count modifier | ||
fails:String#unpack with format 'b' decodes all the bits when passed the '*' modifier | ||
fails:String#unpack with format 'b' adds an empty string for each element requested beyond the end of the String | ||
fails:String#unpack with format 'b' ignores NULL bytes between directives | ||
fails:String#unpack with format 'b' ignores spaces between directives |
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,4 +1,2 @@ | ||
fails:String#unpack with format 'C' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'C' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'c' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'c' adds nil for each element requested beyond the end of the String |
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,6 +1,2 @@ | ||
fails:String#unpack with format 'D' ignores whitespace in the format string | ||
fails:String#unpack with format 'D' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'D' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'd' ignores whitespace in the format string | ||
fails:String#unpack with format 'd' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'd' adds nil for each element requested beyond the end of the String |
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,6 +1,2 @@ | ||
fails:String#unpack with format 'E' ignores whitespace in the format string | ||
fails:String#unpack with format 'E' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'E' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'e' ignores whitespace in the format string | ||
fails:String#unpack with format 'e' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'e' adds nil for each element requested beyond the end of the String |
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,6 +1,2 @@ | ||
fails:String#unpack with format 'F' ignores whitespace in the format string | ||
fails:String#unpack with format 'F' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'F' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'f' ignores whitespace in the format string | ||
fails:String#unpack with format 'f' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'f' adds nil for each element requested beyond the end of the String |
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,6 +1,2 @@ | ||
fails:String#unpack with format 'G' ignores whitespace in the format string | ||
fails:String#unpack with format 'G' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'G' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'g' ignores whitespace in the format string | ||
fails:String#unpack with format 'g' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'g' adds nil for each element requested beyond the end of the String |
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,22 +1,2 @@ | ||
fails:String#unpack with format 'H' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'H' decodes one nibble from each byte for each format character starting with the most significant bit | ||
fails:String#unpack with format 'H' decodes only the number of nibbles in the string when passed a count | ||
fails:String#unpack with format 'H' decodes multiple differing nibble counts from a single string | ||
fails:String#unpack with format 'H' decodes a directive with a '*' modifier after a directive with a count modifier | ||
fails:String#unpack with format 'H' decodes a directive with a count modifier after a directive with a '*' modifier | ||
fails:String#unpack with format 'H' decodes the number of nibbles specified by the count modifier | ||
fails:String#unpack with format 'H' decodes all the nibbles when passed the '*' modifier | ||
fails:String#unpack with format 'H' adds an empty string for each element requested beyond the end of the String | ||
fails:String#unpack with format 'H' ignores NULL bytes between directives | ||
fails:String#unpack with format 'H' ignores spaces between directives | ||
fails:String#unpack with format 'h' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'h' decodes one nibble from each byte for each format character starting with the least significant bit | ||
fails:String#unpack with format 'h' decodes only the number of nibbles in the string when passed a count | ||
fails:String#unpack with format 'h' decodes multiple differing nibble counts from a single string | ||
fails:String#unpack with format 'h' decodes a directive with a '*' modifier after a directive with a count modifier | ||
fails:String#unpack with format 'h' decodes a directive with a count modifier after a directive with a '*' modifier | ||
fails:String#unpack with format 'h' decodes the number of nibbles specified by the count modifier | ||
fails:String#unpack with format 'h' decodes all the nibbles when passed the '*' modifier | ||
fails:String#unpack with format 'h' adds an empty string for each element requested beyond the end of the String | ||
fails:String#unpack with format 'h' ignores NULL bytes between directives | ||
fails:String#unpack with format 'h' ignores spaces between directives |
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,22 +1,2 @@ | ||
fails:String#unpack with format 'I' with modifier '<' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '<' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '<' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '>' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '>' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '>' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '<' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '<' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '<' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '>' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '>' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '>' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' ignores whitespace in the format string | ||
fails:String#unpack with format 'I' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'I' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'I' with modifier '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' ignores whitespace in the format string | ||
fails:String#unpack with format 'i' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'i' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'i' with modifier '!' adds nil for each element requested beyond the end of the String |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,2 @@ | ||
fails:String#unpack with format 'M' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'M' decodes an empty string | ||
fails:String#unpack with format 'M' decodes the complete string ignoring newlines when given a single directive | ||
fails:String#unpack with format 'M' appends empty string to the array for directives exceeding the input size | ||
fails:String#unpack with format 'M' ignores the count or '*' modifier and decodes the entire string | ||
fails:String#unpack with format 'M' decodes the '=' character | ||
fails:String#unpack with format 'M' decodes an embedded space character | ||
fails:String#unpack with format 'M' decodes a space at the end of the pre-encoded string | ||
fails:String#unpack with format 'M' decodes an embedded tab character | ||
fails:String#unpack with format 'M' decodes a tab character at the end of the pre-encoded string | ||
fails:String#unpack with format 'M' decodes an embedded newline | ||
fails:String#unpack with format 'M' decodes pre-encoded byte values 33..60 | ||
fails:String#unpack with format 'M' decodes pre-encoded byte values 62..126 | ||
fails:String#unpack with format 'M' decodes pre-encoded byte values 0..31 except tab and newline | ||
fails:String#unpack with format 'M' decodes pre-encoded byte values 127..255 | ||
fails:String#unpack with format 'm' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'm' decodes an empty string | ||
fails:String#unpack with format 'm' decodes the complete string ignoring newlines when given a single directive | ||
fails:String#unpack with format 'm' ignores the count or '*' modifier and decodes the entire string | ||
fails:String#unpack with format 'm' appends empty string to the array for directives exceeding the input size | ||
fails:String#unpack with format 'm' decodes all pre-encoded ascii byte values | ||
fails:String#unpack with format 'm' produces binary strings |
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,5 +1,2 @@ | ||
fails:String#unpack with format 'N' ignores whitespace in the format string | ||
fails:String#unpack with format 'N' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'N' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'n' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'n' adds nil for each element requested beyond the end of the String |
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,9 +1,2 @@ | ||
fails:String#unpack with format 'Q' with modifier '<' decodes a long with most significant bit set as a positive number | ||
fails:String#unpack with format 'Q' with modifier '>' decodes a long with most significant bit set as a positive number | ||
fails:String#unpack with format 'Q' ignores whitespace in the format string | ||
fails:String#unpack with format 'Q' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'q' ignores whitespace in the format string | ||
fails:String#unpack with format 'q' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'Q' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'Q' decodes a long with most significant bit set as a positive number | ||
fails:String#unpack with format 'q' adds nil for each element requested beyond the end of the String |
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,20 +1,2 @@ | ||
fails:String#unpack with format 'S' with modifier '<' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '<' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '<' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '>' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '>' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '>' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '<' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '<' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '<' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '>' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '>' and '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '>' and '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'S' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 'S' with modifier '!' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 's' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '_' adds nil for each element requested beyond the end of the String | ||
fails:String#unpack with format 's' with modifier '!' adds nil for each element requested beyond the end of the String |
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,7 +1,2 @@ | ||
fails:String#unpack with format 'U' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'u' calls #to_str to coerce the directives string | ||
fails:String#unpack with format 'u' decodes an empty string as an empty string | ||
fails:String#unpack with format 'u' decodes the complete string ignoring newlines when given a single directive | ||
fails:String#unpack with format 'u' appends empty string to the array for directives exceeding the input size | ||
fails:String#unpack with format 'u' ignores the count or '*' modifier and decodes the entire string | ||
fails:String#unpack with format 'u' decodes all ascii characters |
Oops, something went wrong.