Skip to content

Commit

Permalink
Remove last core/array specs and use rubyspec for all array tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 22, 2013
1 parent d76bc00 commit 049225a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 1,263 deletions.
14 changes: 13 additions & 1 deletion spec/filters/bugs/array.rb
Expand Up @@ -193,7 +193,6 @@

fails "Array#select returns a new array of elements for which block is true"


fails "Array#shift passed a number n as an argument raises an ArgumentError if more arguments are passed"
fails "Array#shift passed a number n as an argument raises a TypeError when the passed n can be coerced to Integer"
fails "Array#shift passed a number n as an argument tries to convert n to an Integer using #to_int"
Expand All @@ -214,6 +213,19 @@

fails "Array#shuffle! returns the same values, in a usually different order"

fails "Array#slice with a subclass of Array returns a subclass instance with [-n...-m]"
fails "Array#slice with a subclass of Array returns a subclass instance with [-n..-m]"
fails "Array#slice with a subclass of Array returns a subclass instance with [n...m]"
fails "Array#slice with a subclass of Array returns a subclass instance with [n..m]"
fails "Array#slice with a subclass of Array returns a subclass instance with [-n, m]"
fails "Array#slice with a subclass of Array returns a subclass instance with [n, m]"
fails "Array#slice raises a RangeError when the length is out of range of Fixnum"
fails "Array#slice raises a RangeError when the start index is out of range of Fixnum"
fails "Array#slice returns nil if range start is not in the array with [m..n]"
fails "Array#slice tries to convert Range elements to Integers using #to_int with [m..n] and [m...n]"
fails "Array#slice accepts Range instances having a negative m and both signs for n with [m..n] and [m...n]"
fails "Array#slice tries to convert the passed argument to an Integer using #to_int"

fails "Array#slice! does not expand array with negative indices out of bounds"
fails "Array#slice! does not expand array with indices out of bounds"
fails "Array#slice! calls to_int on range arguments"
Expand Down

0 comments on commit 049225a

Please sign in to comment.