|
4 | 4 |
|
5 | 5 | fails "Array#clone copies singleton methods"
|
6 | 6 | fails "Array#clone creates a new array containing all elements or the original"
|
7 |
| - fails "Array#clone returns an Array or a subclass instance" |
8 | 7 |
|
9 | 8 | fails "Array#collect! returns an Enumerator when no block given, and the enumerator can modify the original array"
|
10 | 9 |
|
|
23 | 22 | fails "Array#<=> returns +1 if the arrays have same length and a pair of corresponding elements returns +1 for <=>"
|
24 | 23 | fails "Array#<=> properly handles recursive arrays"
|
25 | 24 | fails "Array#<=> tries to convert the passed argument to an Array using #to_ary"
|
26 |
| - fails "Array#<=> does not call #to_ary on Array subclasses" |
27 | 25 | fails "Array#<=> returns nil when the argument is not array-like"
|
28 | 26 |
|
29 | 27 | fails "Array#concat tries to convert the passed argument to an Array using #to_ary"
|
30 |
| - fails "Array#concat does not call #to_ary on Array subclasses" |
31 | 28 | fails "Array#concat is not infected by the other"
|
32 | 29 |
|
33 |
| - fails "Array#count returns the number of element for which the block evaluates to true" |
34 |
| - |
35 | 30 | fails "Array#delete_at tries to convert the passed argument to an Integer using #to_int"
|
36 | 31 |
|
37 | 32 | fails "Array#delete_if returns an Enumerator if no block given, and the enumerator can modify the original array"
|
|
43 | 38 | fails "Array#drop_while removes elements from the start of the array until the block returns nil"
|
44 | 39 | fails "Array#drop_while removes elements from the start of the array while the block evaluates to true"
|
45 | 40 |
|
46 |
| - fails "Array#drop raises an ArgumentError if the number of elements specified is negative" |
47 |
| - |
48 | 41 | fails "Array#dup creates a new array containing all elements or the original"
|
49 |
| - fails "Array#dup returns an Array or a subclass instance" |
50 | 42 |
|
51 |
| - fails "Array#[]= does not call to_ary on rhs array subclasses for multi-element sets" |
52 | 43 | fails "Array#[]= calls to_ary on its rhs argument for multi-element sets"
|
53 | 44 | fails "Array#[]= raises an IndexError when passed indexes out of bounds"
|
54 | 45 | fails "Array#[]= tries to convert Range elements to Integers using #to_int with [m..n] and [m...n]"
|
|
65 | 56 |
|
66 | 57 | fails "Array#eql? returns false if any corresponding elements are not #eql?"
|
67 | 58 | fails "Array#eql? ignores array class differences"
|
68 |
| - fails "Array#eql? does not call #to_ary on Array subclasses" |
69 | 59 | fails "Array#eql? does not call #to_ary on its argument"
|
70 | 60 | fails "Array#eql? handles well recursive arrays"
|
71 | 61 | fails "Array#eql? returns false immediately when sizes of the arrays differ"
|
|
74 | 64 | fails "Array#== returns true if corresponding elements are #=="
|
75 | 65 | fails "Array#== returns false if any corresponding elements are not #=="
|
76 | 66 | fails "Array#== compares with an equivalent Array-like object using #to_ary"
|
77 |
| - fails "Array#== does not call #to_ary on Array subclasses" |
78 | 67 | fails "Array#== does not call #to_ary on its argument"
|
79 | 68 | fails "Array#== handles well recursive arrays"
|
80 | 69 | fails "Array#== returns false immediately when sizes of the arrays differ"
|
|
88 | 77 | fails "Array#flatten does not call flatten on elements"
|
89 | 78 | fails "Array#flatten raises an ArgumentError on recursive arrays"
|
90 | 79 | fails "Array#flatten flattens any element which responds to #to_ary, using the return value of said method"
|
91 |
| - fails "Array#flatten returns subclass instance for Array subclasses" |
92 | 80 | fails "Array#flatten with a non-Array object in the Array ignores the return value of #to_ary if it is nil"
|
93 | 81 | fails "Array#flatten with a non-Array object in the Array raises a TypeError if the return value of #to_ary is not an Array"
|
94 | 82 | fails "Array#flatten raises a TypeError when the passed Object can't be converted to an Integer"
|
|
110 | 98 | fails "Array#initialize with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is given"
|
111 | 99 | fails "Array#initialize with (size, object=nil) raises an ArgumentError if size is too large"
|
112 | 100 | fails "Array#initialize with (size, object=nil) sets the array to size and fills with the object"
|
113 |
| - fails "Array#initialize with (array) does not call #to_ary on instances of Array or subclasses of Array" |
114 | 101 | fails "Array#initialize with (array) calls #to_ary to convert the value to an array"
|
115 | 102 | fails "Array#initialize raises a RuntimeError on frozen arrays"
|
116 | 103 | fails "Array#initialize preserves the object's identity even when changing its value"
|
117 |
| - fails "Array#initialize is called on subclasses" |
118 | 104 | fails "Array#initialize is private"
|
119 | 105 |
|
120 | 106 | fails "Array#insert tries to convert the passed position argument to an Integer using #to_int"
|
|
134 | 120 | fails "Array#& determines equivalence between elements in the sense of eql?"
|
135 | 121 |
|
136 | 122 | fails "Array#index returns the index of the first element == to object"
|
137 |
| - fails "Array#index given no argument and no block produces an Enumerator" |
138 | 123 |
|
139 | 124 | fails "Array#inspect calls inspect on its elements and joins the results with commas"
|
140 | 125 |
|
|
152 | 137 | fails "Array#- removes an item identified as equivalent via #hash and #eql?"
|
153 | 138 | fails "Array#- tries to convert the passed arguments to Arrays using #to_ary"
|
154 | 139 |
|
155 |
| - fails "Array#* with an integer with a subclass of Array returns a subclass instance" |
156 |
| - fails "Array#* with an integer raises an ArgumentError when passed a negative integer" |
157 | 140 | fails "Array#* raises a TypeError is the passed argument is nil"
|
158 | 141 | fails "Array#* converts the passed argument to a String rather than an Integer"
|
159 | 142 | fails "Array#* raises a TypeError if the argument can neither be converted to a string nor an integer"
|
|
170 | 153 |
|
171 | 154 | fails "Array.new with (size, object=nil) raises an ArgumentError if size is too large"
|
172 | 155 | fails "Array.new with (array) calls #to_ary to convert the value to an array"
|
173 |
| - fails "Array.new with (array) does not call #to_ary on instances of Array or subclasses of Array" |
174 | 156 | fails "Array.new with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is given"
|
175 | 157 | fails "Array.new with (size, object=nil) calls #to_int to convert the size argument to an Integer when object is not given"
|
176 | 158 | fails "Array.new with (size, object=nil) raises a TypeError if the size argument is not an Integer type"
|
|
180 | 162 | fails "Array#pop passed a number n as an argument raises an ArgumentError if more arguments are passed"
|
181 | 163 | fails "Array#pop passed a number n as an argument raises a TypeError when the passed n can be coerced to Integer"
|
182 | 164 | fails "Array#pop passed a number n as an argument tries to convert n to an Integer using #to_int"
|
183 |
| - fails "Array#pop passed a number n as an argument raises an ArgumentError if n is negative" |
184 | 165 |
|
185 | 166 | fails "Array#rassoc does not check the last element in each contained but speficically the second"
|
186 | 167 | fails "Array#rassoc calls elem == obj on the second element of each contained array"
|
187 | 168 |
|
188 |
| - fails "Array#replace does not call #to_ary on Array subclasses" |
189 | 169 | fails "Array#replace tries to convert the passed argument to an Array using #to_ary"
|
190 | 170 |
|
191 | 171 | fails "Array#rindex rechecks the array size during iteration"
|
|
213 | 193 |
|
214 | 194 | fails "Array#shuffle! returns the same values, in a usually different order"
|
215 | 195 |
|
216 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [-n...-m]" |
217 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [-n..-m]" |
218 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [n...m]" |
219 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [n..m]" |
220 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [-n, m]" |
221 |
| - fails "Array#slice with a subclass of Array returns a subclass instance with [n, m]" |
222 | 196 | fails "Array#slice raises a RangeError when the length is out of range of Fixnum"
|
223 | 197 | fails "Array#slice raises a RangeError when the start index is out of range of Fixnum"
|
224 | 198 | fails "Array#slice returns nil if range start is not in the array with [m..n]"
|
|
232 | 206 | fails "Array#slice! removes and return elements in range"
|
233 | 207 | fails "Array#slice! calls to_int on start and length arguments"
|
234 | 208 |
|
235 |
| - fails "Array#take raises an ArgumentError when the argument is negative" |
236 |
| - |
237 |
| - fails "Array#to_a does not return subclass instance on Array subclasses" |
238 |
| - |
239 | 209 | fails "Array#to_s calls inspect on its elements and joins the results with commas"
|
240 | 210 |
|
241 | 211 | fails "Array#transpose raises a TypeError if the passed Argument does not respond to #to_ary"
|
|
250 | 220 | fails "Array#uniq compares elements based on the value returned from the block"
|
251 | 221 | fails "Array#uniq compares elements with matching hash codes with #eql?"
|
252 | 222 | fails "Array#uniq uses eql? semantics"
|
253 |
| - fails "Array#uniq returns subclass instance on Array subclasses" |
254 | 223 |
|
255 | 224 | fails "Array#uniq! compares elements based on the value returned from the block"
|
256 | 225 | fails "Array#uniq! properly handles recursive arrays"
|
|
0 commit comments