From: Adam Akhtar Date: 2008-09-16T18:59:35+09:00 Subject: Re: getting an array of unique objects of a class i wrote Thank you everyone for your reply. Ive implemented the hash and eql? definitions for my class and it worked. On a similiar note what do i have to do for my unit tests which compare two objects to work. I.e. assert_equal(expected_object, some_method_which_returns_an_object()) where both the compared objects are instances of a class i defined. So far my unit tests fail despite the variables within the objects being identical. the only difference is the object_id which i guess is important. I impleted hash and eql? like above but the tests still dont pass. -- Posted via http://www.ruby-forum.com/.