[MacRuby-devel] [MacRuby] #200: NSCFBoolean instances compared to Ruby bools does not work as expected

MacRuby ruby-noreply at macosforge.org
Thu Oct 15 21:27:17 PDT 2009


#200: NSCFBoolean instances compared to Ruby bools does not work as expected
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |        Owner:  lsansonetti@…        
     Type:  defect                   |       Status:  closed               
 Priority:  blocker                  |    Milestone:  MacRuby 0.5          
Component:  MacRuby                  |   Resolution:  fixed                
 Keywords:                           |  
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.5


Old description:

> {{{
> >> NSNumber.numberWithBool(true) == true
> => false
> }}}
>
> Added to known_bugs in r781

New description:

 {{{
 >> NSNumber.numberWithBool(true) == true
 => false
 }}}

 Added to known_bugs in r781

--

Comment:

 This is working in trunk (0.5).

 {{{
 $ ./miniruby -e "p NSNumber.numberWithBool(true) == true"
 true
 $ ./miniruby -e "p NSNumber.numberWithBool(false) == false"
 true
 $ ./miniruby -e "p NSNumber.numberWithBool(true) == false"
 false
 $ ./miniruby -e "p NSNumber.numberWithBool(false) == true"
 false
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/200#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list