--0016363b8b2874b62c04a96e3ac0
Content-Type: text/plain; charset=ISO-8859-1

Hi!

Sorry for reporting this bug here, but I can't log into redmine even after
having
requested a new password...

Set#seems buggy in ruby 1.9.3, as illustrated by the following scenario.
I can't reproduce the bug without using Hash#delete to get another empty
hash
than "{ }".

blambeau@kali:~/Temp$ cat test.rb

require 'set'
RUBY_VERSION
tuple  :hello "world"}
empty  uple.dup
empty.delete(:hello)
puts empty {}
puts Set.new([{}]) Set.new([empty])

blambeau@kali:~/Temp$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

blambeau@kali:~/Temp$ ruby test.rb
true
true

[...]

blambeau@kali:~/Temp$ ruby --version
ruby 1.9.3dev (2011-07-31 revision 32789) [i686-linux]

blambeau@kali:~/Temp$ ruby test.rb
true
false

--0016363b8b2874b62c04a96e3ac0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi!
<div><br></div><div>Sorry for reporting this bug here, but I can&#39;t log into redmine even after having</div><div>requested a new password.../div><div><br></div><div>Set#== seems buggy in ruby 1.9.3, as illustrated by the following scenario./div>
<div>I can&#39;t reproduce the bug without using Hash#delete to get anothermpty hash/div><div>than &quot;{ }&quot;.</div><div><br></div><div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">blambeau@kali:~/Temp$ cat test.rb/font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">require &#39;set&#39;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">RUBY_VERSION</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">tuple = {:hello =&gt; &quot;world&quot;}</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">empty = tuple.dup</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">empty.delete(:hello)</font></div><div><font class="Apple-style-span"ace="&#39;courier new&#39;, monospace">puts empty == {}</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">puts Set.new([{}]) == Set.new([empty])</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">blambeau@kali:~/Temp$ ruby --version</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">blambeau@kali:~/Temp$ ruby test.rb/font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">true</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">true</font></div><div><font class="Apple-style-span" face="&#39;courierew&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">[...]</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">blambeau@kali:~/Temp$ ruby --version</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ruby 1.9.3dev (2011-07-31 revision 32789) [i686-linux]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">blambeau@kali:~/Temp$ ruby test.rb/font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">true</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">false</font></div><div><br></div></div></div>

--0016363b8b2874b62c04a96e3ac0--