File tree 40 files changed +1
-105
lines changed
core/src/main/java/org/jruby/truffle/nodes/methods
40 files changed +1
-105
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ private RubyException translate(UnsupportedSpecializationException exception) {
116
116
}
117
117
}
118
118
119
- return getContext ().getCoreLibrary ().internalError (builder .toString (), this );
119
+ return getContext ().getCoreLibrary ().typeError (builder .toString (), this );
120
120
}
121
121
122
122
public RubyException translate (Throwable throwable ) {
Original file line number Diff line number Diff line change 1
1
fails:Array#at tries to convert the passed argument to an Integer using #to_int
2
- fails:Array#at raises a TypeError when the passed argument can't be coerced to Integer
3
2
fails:Array#at raises an ArgumentError when 2 or more arguments is passed
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ fails:Array#initialize with no arguments makes the array empty
5
5
fails:Array#initialize with no arguments does not use the given block
6
6
fails:Array#initialize with (array) does not use the given block
7
7
fails:Array#initialize with (array) calls #to_ary to convert the value to an array
8
- fails:Array#initialize with (array) raises a TypeError if an Array type argument and a default object
9
8
fails:Array#initialize with (size, object=nil) sets the array to size and fills with nil when object is omitted
10
9
fails:Array#initialize with (size, object=nil) raises an ArgumentError if size is negative
11
10
fails:Array#initialize with (size, object=nil) raises an ArgumentError if size is too large
12
11
fails:Array#initialize with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is given
13
12
fails:Array#initialize with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is not given
14
- fails:Array#initialize with (size, object=nil) raises a TypeError if the size argument is not an Integer type
15
13
fails:Array#initialize with (size, object=nil) uses the block value instead of using the default value
16
14
fails:Array#initialize with (size, object=nil) returns the value passed to break
17
15
fails:Array#initialize with (size, object=nil) sets the array to the values returned by the block before break is executed
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ fails:Array#join fails for arrays with incompatibly-encoded strings
16
16
fails:Array#join does not separate elements when the passed separator is nil
17
17
fails:Array#join calls #to_str to convert the separator to a String
18
18
fails:Array#join does not call #to_str on the separator if the array is empty
19
- fails:Array#join raises a TypeError if the separator cannot be coerced to a String by calling #to_str
20
- fails:Array#join raises a TypeError if passed false as the separator
21
19
fails:Array#join with a tainted separator does not taint the result if the array is empty
22
20
fails:Array#join with a tainted separator does not taint the result if the array has only one element
23
21
fails:Array#join with a tainted separator taints the result if the array has two or more elements
Original file line number Diff line number Diff line change 1
1
fails:Array#- tries to convert the passed arguments to Arrays using #to_ary
2
- fails:Array#- raises a TypeError if the argument cannot be coerced to an Array by calling #to_ary
3
2
fails:Array#- does not return subclass instance for Array subclasses
4
3
fails:Array#- does not call to_ary on array subclasses
5
4
fails:Array#- removes an item identified as equivalent via #hash and #eql?
Original file line number Diff line number Diff line change 1
1
fails:Array#* tries to convert the passed argument to a String using #to_str
2
2
fails:Array#* tires to convert the passed argument to an Integer using #to_int
3
- fails:Array#* raises a TypeError if the argument can neither be converted to a string nor an integer
4
3
fails:Array#* converts the passed argument to a String rather than an Integer
5
- fails:Array#* raises a TypeError is the passed argument is nil
6
4
fails:Array#* with an integer properly handles recursive arrays
7
5
fails:Array#* with an integer raises an ArgumentError when passed a negative integer
8
6
fails:Array#* with an integer copies the taint status of the original array even if the passed count is 0
Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ fails:Array.new with no arguments returns an empty array
3
3
fails:Array.new with no arguments does not use the given block
4
4
fails:Array.new with (array) does not use the given block
5
5
fails:Array.new with (array) calls #to_ary to convert the value to an array
6
- fails:Array.new with (array) raises a TypeError if an Array type argument and a default object
7
6
fails:Array.new with (size, object=nil) returns an array of size filled with nil when object is omitted
8
7
fails:Array.new with (size, object=nil) raises an ArgumentError if size is negative
9
8
fails:Array.new with (size, object=nil) raises an ArgumentError if size is too large
10
9
fails:Array.new with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is given
11
10
fails:Array.new with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is not given
12
- fails:Array.new with (size, object=nil) raises a TypeError if the size argument is not an Integer type
13
11
fails:Array.new with (size, object=nil) uses the block value instead of using the default value
14
12
fails:Array.new with (size, object=nil) returns the value passed to break
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'A' raises a TypeError when passed nil
2
- fails:Array#pack with format 'A' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'A' ignores whitespace in the format string
4
2
fails:Array#pack with format 'A' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'A' taints the output string if the format string is tainted
@@ -17,8 +15,6 @@ fails:Array#pack with format 'A' returns a untrusted string when the format is u
17
15
fails:Array#pack with format 'A' returns a untrusted string when the empty format is untrusted
18
16
fails:Array#pack with format 'A' returns a untrusted string when a pack argument is untrusted
19
17
fails:Array#pack with format 'A' returns a trusted string when the array is untrusted
20
- fails:Array#pack with format 'a' raises a TypeError when passed nil
21
- fails:Array#pack with format 'a' raises a TypeError when passed an Integer
22
18
fails:Array#pack with format 'a' ignores whitespace in the format string
23
19
fails:Array#pack with format 'a' calls #to_str to coerce the directives string
24
20
fails:Array#pack with format 'a' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format '@' raises a TypeError when passed nil
2
- fails:Array#pack with format '@' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format '@' ignores whitespace in the format string
4
2
fails:Array#pack with format '@' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format '@' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'B' raises a TypeError when passed nil
2
- fails:Array#pack with format 'B' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'B' ignores whitespace in the format string
4
2
fails:Array#pack with format 'B' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'B' taints the output string if the format string is tainted
6
4
fails:Array#pack with format 'B' raises an ArgumentError if there are fewer elements than the format requires
7
5
fails:Array#pack with format 'B' raises a TypeError if the object does not respond to #to_str
8
6
fails:Array#pack with format 'B' raises a TypeError if #to_str does not return a String
9
7
fails:Array#pack with format 'B' calls #to_str to convert an Object to a String
10
- fails:Array#pack with format 'b' raises a TypeError when passed nil
11
- fails:Array#pack with format 'b' raises a TypeError when passed an Integer
12
8
fails:Array#pack with format 'b' ignores whitespace in the format string
13
9
fails:Array#pack with format 'b' calls #to_str to coerce the directives string
14
10
fails:Array#pack with format 'b' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'C' raises a TypeError when passed nil
2
- fails:Array#pack with format 'C' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'C' ignores whitespace in the format string
4
2
fails:Array#pack with format 'C' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'C' taints the output string if the format string is tainted
@@ -11,8 +9,6 @@ fails:Array#pack with format 'C' raises a TypeError when the object does not res
11
9
fails:Array#pack with format 'C' raises a TypeError when passed a String
12
10
fails:Array#pack with format 'C' raises ArgumentError when the format modifier is '_'
13
11
fails:Array#pack with format 'C' raises ArgumentError when the format modifier is '!'
14
- fails:Array#pack with format 'c' raises a TypeError when passed nil
15
- fails:Array#pack with format 'c' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'c' ignores whitespace in the format string
17
13
fails:Array#pack with format 'c' calls #to_str to coerce the directives string
18
14
fails:Array#pack with format 'c' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'D' raises a TypeError when passed nil
2
- fails:Array#pack with format 'D' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'D' calls #to_str to coerce the directives string
4
2
fails:Array#pack with format 'D' taints the output string if the format string is tainted
5
3
fails:Array#pack with format 'D' raises an ArgumentError if there are fewer elements than the format requires
@@ -11,8 +9,6 @@ fails:Array#pack with format 'D' raises a TypeError if a String does not represe
11
9
fails:Array#pack with format 'D' raises a TypeError when the object does not respond to #to_f
12
10
fails:Array#pack with format 'D' raises a TypeError if passed a String representation of a floating point number
13
11
fails:Array#pack with format 'D' encodes NaN
14
- fails:Array#pack with format 'd' raises a TypeError when passed nil
15
- fails:Array#pack with format 'd' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'd' calls #to_str to coerce the directives string
17
13
fails:Array#pack with format 'd' taints the output string if the format string is tainted
18
14
fails:Array#pack with format 'd' raises an ArgumentError if there are fewer elements than the format requires
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'E' raises a TypeError when passed nil
2
- fails:Array#pack with format 'E' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'E' calls #to_str to coerce the directives string
4
2
fails:Array#pack with format 'E' taints the output string if the format string is tainted
5
3
fails:Array#pack with format 'E' raises an ArgumentError if there are fewer elements than the format requires
@@ -11,8 +9,6 @@ fails:Array#pack with format 'E' raises a TypeError if a String does not represe
11
9
fails:Array#pack with format 'E' raises a TypeError when the object does not respond to #to_f
12
10
fails:Array#pack with format 'E' raises a TypeError if passed a String representation of a floating point number
13
11
fails:Array#pack with format 'E' encodes NaN
14
- fails:Array#pack with format 'e' raises a TypeError when passed nil
15
- fails:Array#pack with format 'e' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'e' calls #to_str to coerce the directives string
17
13
fails:Array#pack with format 'e' taints the output string if the format string is tainted
18
14
fails:Array#pack with format 'e' raises an ArgumentError if there are fewer elements than the format requires
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'F' raises a TypeError when passed nil
2
- fails:Array#pack with format 'F' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'F' calls #to_str to coerce the directives string
4
2
fails:Array#pack with format 'F' taints the output string if the format string is tainted
5
3
fails:Array#pack with format 'F' raises an ArgumentError if there are fewer elements than the format requires
@@ -11,8 +9,6 @@ fails:Array#pack with format 'F' raises a TypeError if a String does not represe
11
9
fails:Array#pack with format 'F' raises a TypeError when the object does not respond to #to_f
12
10
fails:Array#pack with format 'F' raises a TypeError if passed a String representation of a floating point number
13
11
fails:Array#pack with format 'F' encodes NaN
14
- fails:Array#pack with format 'f' raises a TypeError when passed nil
15
- fails:Array#pack with format 'f' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'f' calls #to_str to coerce the directives string
17
13
fails:Array#pack with format 'f' taints the output string if the format string is tainted
18
14
fails:Array#pack with format 'f' raises an ArgumentError if there are fewer elements than the format requires
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'G' raises a TypeError when passed nil
2
- fails:Array#pack with format 'G' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'G' calls #to_str to coerce the directives string
4
2
fails:Array#pack with format 'G' taints the output string if the format string is tainted
5
3
fails:Array#pack with format 'G' raises an ArgumentError if there are fewer elements than the format requires
@@ -11,8 +9,6 @@ fails:Array#pack with format 'G' raises a TypeError if a String does not represe
11
9
fails:Array#pack with format 'G' raises a TypeError when the object does not respond to #to_f
12
10
fails:Array#pack with format 'G' raises a TypeError if passed a String representation of a floating point number
13
11
fails:Array#pack with format 'G' encodes NaN
14
- fails:Array#pack with format 'g' raises a TypeError when passed nil
15
- fails:Array#pack with format 'g' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'g' calls #to_str to coerce the directives string
17
13
fails:Array#pack with format 'g' taints the output string if the format string is tainted
18
14
fails:Array#pack with format 'g' raises an ArgumentError if there are fewer elements than the format requires
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'H' raises a TypeError when passed nil
2
- fails:Array#pack with format 'H' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'H' ignores whitespace in the format string
4
2
fails:Array#pack with format 'H' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'H' taints the output string if the format string is tainted
6
4
fails:Array#pack with format 'H' raises an ArgumentError if there are fewer elements than the format requires
7
5
fails:Array#pack with format 'H' raises a TypeError if the object does not respond to #to_str
8
6
fails:Array#pack with format 'H' raises a TypeError if #to_str does not return a String
9
7
fails:Array#pack with format 'H' calls #to_str to convert an Object to a String
10
- fails:Array#pack with format 'h' raises a TypeError when passed nil
11
- fails:Array#pack with format 'h' raises a TypeError when passed an Integer
12
8
fails:Array#pack with format 'h' ignores whitespace in the format string
13
9
fails:Array#pack with format 'h' calls #to_str to coerce the directives string
14
10
fails:Array#pack with format 'h' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'I' raises a TypeError when passed nil
2
- fails:Array#pack with format 'I' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'I' ignores whitespace in the format string
4
2
fails:Array#pack with format 'I' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'I' taints the output string if the format string is tainted
@@ -8,8 +6,6 @@ fails:Array#pack with format 'I' raises a TypeError when passed true
8
6
fails:Array#pack with format 'I' raises a TypeError when passed false
9
7
fails:Array#pack with format 'I' raises a TypeError when the object does not respond to #to_int
10
8
fails:Array#pack with format 'I' raises a TypeError when passed a String
11
- fails:Array#pack with format 'i' raises a TypeError when passed nil
12
- fails:Array#pack with format 'i' raises a TypeError when passed an Integer
13
9
fails:Array#pack with format 'i' ignores whitespace in the format string
14
10
fails:Array#pack with format 'i' calls #to_str to coerce the directives string
15
11
fails:Array#pack with format 'i' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'L' raises a TypeError when passed nil
2
- fails:Array#pack with format 'L' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'L' ignores whitespace in the format string
4
2
fails:Array#pack with format 'L' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'L' taints the output string if the format string is tainted
@@ -8,8 +6,6 @@ fails:Array#pack with format 'L' raises a TypeError when passed true
8
6
fails:Array#pack with format 'L' raises a TypeError when passed false
9
7
fails:Array#pack with format 'L' raises a TypeError when the object does not respond to #to_int
10
8
fails:Array#pack with format 'L' raises a TypeError when passed a String
11
- fails:Array#pack with format 'l' raises a TypeError when passed nil
12
- fails:Array#pack with format 'l' raises a TypeError when passed an Integer
13
9
fails:Array#pack with format 'l' ignores whitespace in the format string
14
10
fails:Array#pack with format 'l' calls #to_str to coerce the directives string
15
11
fails:Array#pack with format 'l' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'M' raises a TypeError when passed nil
2
- fails:Array#pack with format 'M' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'M' ignores whitespace in the format string
4
2
fails:Array#pack with format 'M' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'M' taints the output string if the format string is tainted
@@ -9,8 +7,6 @@ fails:Array#pack with format 'M' calls #to_s to convert an object to a String
9
7
fails:Array#pack with format 'M' converts the object to a String representation if #to_s does not return a String
10
8
fails:Array#pack with format 'M' encodes a Symbol as a String
11
9
fails:Array#pack with format 'M' encodes an Integer as a String
12
- fails:Array#pack with format 'm' raises a TypeError when passed nil
13
- fails:Array#pack with format 'm' raises a TypeError when passed an Integer
14
10
fails:Array#pack with format 'm' ignores whitespace in the format string
15
11
fails:Array#pack with format 'm' calls #to_str to coerce the directives string
16
12
fails:Array#pack with format 'm' taints the output string if the format string is tainted
Original file line number Diff line number Diff line change 1
- fails:Array#pack with format 'N' raises a TypeError when passed nil
2
- fails:Array#pack with format 'N' raises a TypeError when passed an Integer
3
1
fails:Array#pack with format 'N' ignores whitespace in the format string
4
2
fails:Array#pack with format 'N' calls #to_str to coerce the directives string
5
3
fails:Array#pack with format 'N' taints the output string if the format string is tainted
@@ -11,8 +9,6 @@ fails:Array#pack with format 'N' raises a TypeError when passed a String
11
9
fails:Array#pack with format 'N' raises ArgumentError when the format modifier is '_'
12
10
fails:Array#pack with format 'N' raises ArgumentError when the format modifier is '!'
13
11
fails:Array#pack with format 'N' calls #to_int to convert the pack argument to an Integer
14
- fails:Array#pack with format 'n' raises a TypeError when passed nil
15
- fails:Array#pack with format 'n' raises a TypeError when passed an Integer
16
12
fails:Array#pack with format 'n' ignores whitespace in the format string
17
13
fails:Array#pack with format 'n' calls #to_str to coerce the directives string
18
14
fails:Array#pack with format 'n' taints the output string if the format string is tainted
You can’t perform that action at this time.
0 commit comments