Skip to content

Instantly share code, notes, and snippets.

View toch's full-sized avatar

Christophe Philemotte toch

View GitHub Profile
toch /
Last active August 29, 2015 13:56 — forked from matiaskorhonen/
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)
require 'minitest/autorun'
require 'minitest/spec'
class ElementTest
attr_accessor :value
def eql?(other)
value == other.value