[macruby-changes] [1654] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Sat May 30 15:43:02 PDT 2009


Revision: 1654
          http://trac.macosforge.org/projects/ruby/changeset/1654
Author:   eloy.de.enige at gmail.com
Date:     2009-05-30 15:43:02 -0700 (Sat, 30 May 2009)
Log Message:
-----------
Tagged critical and failing hash examples and added Hash to spec:ci.

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/spec.rake

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/clear_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/delete_if_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_key_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_pair_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_value_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_reference_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_set_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/eql_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/equal_value_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indexes_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indices_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_copy_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/inspect_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/merge_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/rehash_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/reject_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/replace_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/select_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/shift_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/store_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_a_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_s_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/update_tags.txt

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-05-30 21:03:25 UTC (rev 1653)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-05-30 22:43:02 UTC (rev 1654)
@@ -57,6 +57,7 @@
   CI_DIRS = %w{
     spec/frozen/language
     spec/frozen/core/array
+    spec/frozen/core/hash
   }.join(' ')
   
   MACRUBY_MSPEC = "./spec/macruby.mspec"
@@ -103,17 +104,18 @@
     sh "./mspec/bin/mspec run -V -f s -g fails -B #{MACRUBY_MSPEC} #{CI_DIRS}"
   end
   
+  desc "Tags failing examples in spec/core, specify the class to tag with the env variable `class'"
   task :tag_failing do
     klass = ENV['class']
     puts "Tagging failing examples of class `#{klass}'"
     
+    tag_base = "./spec/frozen/tags/macruby/core/#{klass}"
+    mkdir_p tag_base
+    
     Dir.glob("./spec/frozen/core/#{klass}/*_spec.rb").each do |spec_file|
       cmd = "./mspec/bin/mspec ci -f s -B ./spec/macruby.mspec #{spec_file}"
       out = `#{cmd}`
       
-      tag_base = "./spec/frozen/tags/macruby/core/#{klass}"
-      mkdir_p tag_base
-      
       if out.match(/^1\)(.+?)(FAILED|ERROR)/m)
         failures = $1.strip.split("\n")
         

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/clear_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/clear_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/clear_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#clear raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,4 @@
+fails:Hash#default_proc= replaces the block passed to Hash.new
+fails:Hash#default_proc= uses :to_proc on its argument
+fails:Hash#default_proc= overrides the static default
+fails:Hash#default_proc= raise an error if passed stuff not convertible to procs

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#default= unsets the default proc
+fails:Hash#default= raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/delete_if_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/delete_if_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/delete_if_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#delete_if processes entries with the same order as each()
+fails:Hash#delete_if returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#delete_if returns an Enumerator if called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_key_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_key_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_key_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#each_key returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#each_key returns an Enumerator if called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_pair_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_pair_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_pair_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#each_pair processes all pairs, yielding two arguments: key and value
+fails:Hash#each_pair returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#each_pair returns an Enumerator if called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#each returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#each returns an Enumerator if called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_value_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_value_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/each_value_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#each_value returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#each_value returns an Enumerator if called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_reference_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_reference_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_reference_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#[] compares key with found hash code via eql?

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_set_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_set_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/element_set_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#[]= duplicates string keys using dup semantics
+fails:Hash#[]= duplicates and freezes string keys
+fails:Hash#[]= raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/eql_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/eql_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/eql_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+critical:Hash#eql? computes equality for complex recursive hashes
+critical:Hash#eql? computes equality for recursive hashes & arrays
+fails:Hash#eql? compares keys with matching hash codes via eql?

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/equal_value_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/equal_value_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/equal_value_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+critical:Hash#== computes equality for complex recursive hashes
+critical:Hash#== computes equality for recursive hashes & arrays
+fails:Hash#== compares keys with matching hash codes via eql?

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indexes_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indexes_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indexes_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#indexes returns an array of values for the given keys

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indices_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indices_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/indices_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#indices returns an array of values for the given keys

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_copy_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_copy_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_copy_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#initialize_copy is private
+fails:Hash#initialize_copy does not transfer default values
+fails:Hash#initialize_copy raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/initialize_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#initialize is private
+fails:Hash#initialize raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/inspect_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/inspect_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/inspect_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+critical:Hash#inspect handles recursive hashes
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/merge_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/merge_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/merge_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#merge returns subclass instance for subclasses
+fails:Hash#merge processes entries with same order as each()
+fails:Hash#merge! raises a TypeError if called on a non-empty, frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/rehash_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/rehash_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/rehash_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#rehash raises a TypeError if called on a frozen instance
+fails:Hash#rehash causes a RuntimeError to be raised if called inside an iterator block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/reject_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/reject_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/reject_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,6 @@
+fails:Hash#reject returns subclass instance for subclasses
+fails:Hash#reject returns an Enumerator if called on a non-empty hash without a block
+fails:Hash#reject returns an Enumerator if called on an empty hash without a block
+fails:Hash#reject! raises a TypeError if called on a frozen instance
+fails:Hash#reject! returns an Enumerator when called on a non-empty hash without a block
+fails:Hash#reject! returns an Enumerator when called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/replace_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/replace_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/replace_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#replace does not transfer default values
+fails:Hash#replace raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/select_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/select_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/select_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,2 @@
+fails:Hash#select returns an Enumerator when called on a non-empty hash without a block
+fails:Hash#select returns an Enumerator when called on an empty hash without a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/shift_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/shift_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/shift_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#shift raises a RuntimeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/store_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/store_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/store_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1,3 @@
+fails:Hash#store duplicates string keys using dup semantics
+fails:Hash#store duplicates and freezes string keys
+fails:Hash#store raises a TypeError if called on a frozen instance

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_a_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_a_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_a_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#to_a returns a list of [key, value] pairs with same order as each()

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_s_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_s_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/to_s_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+critical:Hash#to_s handles recursive hashes
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/update_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/update_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/update_tags.txt	2009-05-30 22:43:02 UTC (rev 1654)
@@ -0,0 +1 @@
+fails:Hash#update raises a TypeError if called on a non-empty, frozen instance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090530/0b23c6e3/attachment-0001.html>


More information about the macruby-changes mailing list