<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
</div>Just because too objects have the same to_s representation don't mean<br>
they are equal:</blockquote><div> </div><div>The important equality in this case is what matters to the tester. <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>This is a similar issue to Floats where there's more precision than<br>
the exernal representation shows.<br>
<font color="#888888"></font></blockquote><div><br>Is there more precision than seconds in a Time instance?<br><br>irb(main):006:0> a,b = Time.now, Time.now<br>=> [Sat May 03 11:06:31 -0700 2008, Sat May 03 11:06:31 -0700 2008]<br>
irb(main):007:0> puts a.to_i, b.to_i<br>1209837991<br>1209837991<br>=> nil<br><br></div></div>