Revision
3411
Author
eloy.de.enige@gmail.com
Date
2010-02-02 07:26:50 -0800 (Tue, 02 Feb 2010)

Log Message

Add test_vm test which shows that including a module into Hash causes breakage.

Modified Paths

Diff

Modified: MacRuby/trunk/test_vm/hash.rb (3410 => 3411)


--- MacRuby/trunk/test_vm/hash.rb	2010-02-02 05:31:53 UTC (rev 3410)
+++ MacRuby/trunk/test_vm/hash.rb	2010-02-02 15:26:50 UTC (rev 3411)
@@ -1 +1,8 @@
-assert "lettuce\nbacon", '{:main_ingredient => "lettuce", :total => "bacon"}.each { |_,v| puts v }'
\ No newline at end of file
+assert "lettuce\nbacon", '{:main_ingredient => "lettuce", :total => "bacon"}.each { |_,v| puts v }'
+
+assert "42", %{
+  module H; end
+  class Hash; include H; end
+  d = NSDictionary.dictionaryWithDictionary('answer' => 42)
+  p d['answer']
+}
\ No newline at end of file