Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar

Christophe Philemotte toch

View GitHub Profile
toch / ArrayEqualTest
Last active December 14, 2015 02:09 — forked from vanakenm/ArrayEqualTest
Because - use eql? operator and include use == operator, you should take care of what you can obtain with a - (that use key hash to make the search) and include (that use object comparator to test)
View ArrayEqualTest
require 'minitest/autorun'
require 'minitest/spec'
class ElementTest
attr_accessor :value
def eql?(other)
value == other.value