Guest User

Untitled

a guest
Jul 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Array#==
  2. - returns true if other is the same array
  3. - returns true if corresponding elements are #eql?
  4. - returns false if other is shorter than self
  5. - returns false if other is longer than self
  6. - returns false immediately when sizes of the arrays differ
  7. - handles well recursive arrays
  8. - does not call #to_ary on its argument
  9. - does not call #to_ary on Array subclasses
  10. - ignores array class differences
  11. - compares with an equivalent Array-like object using #to_ary (FAILED - 1)
  12. - compares with an equivalent Array-like object using #to_ary (ERROR - 2)
  13. - returns false if any corresponding elements are not #== (FAILED - 3)
  14. - returns false if any corresponding elements are not #== (ERROR - 4)
  15. - returns true if corresponding elements are #== (FAILED - 5)
  16. - returns true if corresponding elements are #== (ERROR - 6)
  17. - returns false for [NaN] == [NaN] (FAILED - 7)
  18. - returns false for [NaN] == [NaN] (ERROR - 8)
Add Comment
Please, Sign In to add comment