[macruby-changes] [767] MacRuby/trunk/test-macruby/known_bugs.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 23 02:57:33 PST 2008
Revision: 767
http://trac.macosforge.org/projects/ruby/changeset/767
Author: eloy.de.enige at gmail.com
Date: 2008-12-23 02:57:32 -0800 (Tue, 23 Dec 2008)
Log Message:
-----------
Initial commit of a test suite of known bugs, which may or may not be MacRuby only. Added YAML.load test case.
Added Paths:
-----------
MacRuby/trunk/test-macruby/known_bugs.rb
Added: MacRuby/trunk/test-macruby/known_bugs.rb
===================================================================
--- MacRuby/trunk/test-macruby/known_bugs.rb (rev 0)
+++ MacRuby/trunk/test-macruby/known_bugs.rb 2008-12-23 10:57:32 UTC (rev 767)
@@ -0,0 +1,15 @@
+#!/usr/local/bin/macruby
+
+require "test/unit"
+
+module KnownBugs
+ class TestYaml < Test::Unit::TestCase
+ require "yaml"
+ class IDontWantToCrash; end
+
+ def test_load_non_native_classes
+ data = YAML.dump(IDontWantToCrash.new)
+ assert_nothing_raised { YAML.load(data) }
+ 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/20081223/4a615061/attachment.html>
More information about the macruby-changes
mailing list