[macruby-changes] [781] MacRuby/trunk/test-macruby/known_bugs.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 7 07:13:25 PST 2009
Revision: 781
http://trac.macosforge.org/projects/ruby/changeset/781
Author: eloy.de.enige at gmail.com
Date: 2009-01-07 07:13:25 -0800 (Wed, 07 Jan 2009)
Log Message:
-----------
Added failing test case about comparing NSCFBoolean instance against Ruby bools.
Modified Paths:
--------------
MacRuby/trunk/test-macruby/known_bugs.rb
Modified: MacRuby/trunk/test-macruby/known_bugs.rb
===================================================================
--- MacRuby/trunk/test-macruby/known_bugs.rb 2009-01-07 13:57:21 UTC (rev 780)
+++ MacRuby/trunk/test-macruby/known_bugs.rb 2009-01-07 15:13:25 UTC (rev 781)
@@ -1,6 +1,7 @@
#!/usr/local/bin/macruby
require "test/unit"
+framework 'Cocoa'
module KnownBugs
class TestYaml < Test::Unit::TestCase
@@ -120,4 +121,11 @@
end
end
end
+
+ class TestBooleanComparison < Test::Unit::TestCase
+ def test_NSCFBoolean_comparison_to_Ruby_bool
+ assert_equal true, NSNumber.numberWithBool(true)
+ assert_equal false, NSNumber.numberWithBool(false)
+ end
+ end
end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090107/5140b573/attachment.html>
More information about the macruby-changes
mailing list