[macruby-changes] [2415] MacRuby/trunk/spec/frozen

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 28 16:40:34 PDT 2009


Revision: 2415
          http://trac.macosforge.org/projects/ruby/changeset/2415
Author:   eloy.de.enige at gmail.com
Date:     2009-08-28 16:40:33 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
Tagged critical examples

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/kernel/define_singleton_method_spec.rb
    MacRuby/trunk/spec/frozen/core/method/fixtures/classes_1.9.rb
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/pack_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/io/read_tags.txt

Added Paths:
-----------
    MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/define_singleton_method_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/spawn_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/method/eql_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/method/equal_value_tags.txt

Modified: MacRuby/trunk/spec/frozen/core/kernel/define_singleton_method_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/kernel/define_singleton_method_spec.rb	2009-08-28 23:40:03 UTC (rev 2414)
+++ MacRuby/trunk/spec/frozen/core/kernel/define_singleton_method_spec.rb	2009-08-28 23:40:33 UTC (rev 2415)
@@ -4,9 +4,11 @@
 ruby_version_is '1.9' do
   describe "Kernel#define_singleton_method" do
     describe "when given an UnboundMethod" do
-      class DefineSingletonMethodSpecClass
-        MY_CONST = 42
-        define_singleton_method(:another_test_method, self.method(:constants))
+      before :all do
+        class DefineSingletonMethodSpecClass
+          MY_CONST = 42
+          define_singleton_method(:another_test_method, self.method(:constants))
+        end
       end
 
       it "correctly calls the new method" do

Modified: MacRuby/trunk/spec/frozen/core/method/fixtures/classes_1.9.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/method/fixtures/classes_1.9.rb	2009-08-28 23:40:03 UTC (rev 2414)
+++ MacRuby/trunk/spec/frozen/core/method/fixtures/classes_1.9.rb	2009-08-28 23:40:33 UTC (rev 2415)
@@ -5,6 +5,6 @@
     def one_splat_two_req(*a,b,c); end
     def one_splat_one_req_with_block(*a,b,&block); end
 
-    def one_opt_with_stabby(a=->(b){true}); end
+    def one_opt_with_stabby(a=lambda {|b|true}); end
   end
 end

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/array/pack_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/pack_tags.txt	2009-08-28 23:40:03 UTC (rev 2414)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/pack_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -86,6 +86,7 @@
 fails:Array#pack with format 'L!' tries to convert the pack argument to an Integer using #to_int
 fails:Array#pack with format 'L_' tries to convert the pack argument to an Integer using #to_int
 fails:Array#pack with format 'M' calls #to_s on object to convert to string
+critical:Array#pack with format 'M' does not check whether the pack argument responds to #to_s before call #to_s
 fails:Array#pack with format 'm' tries to convert the pack argument to a String using #to_str
 fails:Array#pack with format 'u' tries to convert the pack argument to a String using #to_str
 fails:Array#pack with format 'w' calls to_int on non-integer values before packing

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/io/read_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/io/read_tags.txt	2009-08-28 23:40:03 UTC (rev 2414)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/io/read_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -1,5 +1,6 @@
 fails:IO.read raises an ArgumentError when not passed a valid length
 fails:IO.read raises an Errno::EINVAL when not passed a valid offset
+critical:IO#read strips the BOM when given 'rb:utf-7-bom' as the mode
 fails:IO#read can read lots of data
 fails:IO#read can read lots of data with length
 fails:IO#read places the specified number of bytes in the buffer

Added: MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/define_singleton_method_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/define_singleton_method_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/define_singleton_method_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -0,0 +1,2 @@
+critical:Kernel#define_singleton_method when given an UnboundMethod correctly calls the new method
+critical:Kernel#define_singleton_method when given an UnboundMethod adds the new method to the methods list

Added: MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/spawn_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/spawn_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/spawn_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -0,0 +1,2 @@
+critical:Kernel.spawn redirects STDERR to the given file descriptior if if :err => Fixnum
+critical:Kernel.spawn redirects STDERR to the given file if :err => String

Added: MacRuby/trunk/spec/frozen/tags/macruby/core/method/eql_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/method/eql_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/method/eql_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -0,0 +1 @@
+critical:Method#eql? returns true if the two methods are alises of each other in C

Added: MacRuby/trunk/spec/frozen/tags/macruby/core/method/equal_value_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/method/equal_value_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/method/equal_value_tags.txt	2009-08-28 23:40:33 UTC (rev 2415)
@@ -0,0 +1 @@
+critical:Method#== returns true if the two methods are alises of each other in C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090828/312567ee/attachment.html>


More information about the macruby-changes mailing list