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

source_changes at macosforge.org source_changes at macosforge.org
Sun May 31 15:19:20 PDT 2009


Revision: 1682
          http://trac.macosforge.org/projects/ruby/changeset/1682
Author:   eloy.de.enige at gmail.com
Date:     2009-05-31 15:19:19 -0700 (Sun, 31 May 2009)
Log Message:
-----------
Tagged critical and failing examples of Module spec and added Module to spec:ci

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

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/alias_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_accessor_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_reader_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_writer_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/autoload_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/case_compare_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_eval_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_get_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_set_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variables_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/comparison_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/const_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/constants_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/define_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/extended_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/freeze_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gt_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gte_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/include_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/included_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/initialize_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_methods_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lt_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lte_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_added_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_undefined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_eval_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_function_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/name_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/nesting_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_class_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_instance_methods_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_method_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_instance_methods_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_method_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_class_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_instance_methods_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_method_defined_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_const_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_method_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/undef_method_tags.txt

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-05-31 21:44:37 UTC (rev 1681)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-05-31 22:19:19 UTC (rev 1682)
@@ -68,6 +68,7 @@
     spec/frozen/core/kernel
     spec/frozen/core/math
     spec/frozen/core/method
+    spec/frozen/core/module
     spec/frozen/core/nil
     spec/frozen/core/numeric
     spec/frozen/core/object

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/alias_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/alias_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/alias_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#alias_method retains method visibility
+fails:Module#alias_method is a private method

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_accessor_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_accessor_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_accessor_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#attr_accessor applies current visibility to methods created

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_reader_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_reader_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_reader_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#attr_reader creates a getter for each given attribute name
+fails:Module#attr_reader applies current visibility to methods created

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,5 @@
+fails:Module#attr creates a getter for the given attribute name
+fails:Module#attr creates a getter and setter for the given attribute name if called with and without writeable is true
+fails:Module#attr applies current visibility to methods created
+fails:Module#attr creates a getter but no setter for all given attribute names
+fails:Module#attr applies current visibility to methods created

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_writer_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_writer_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/attr_writer_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,3 @@
+fails:Module#attr_writer creates a setter for an attribute name given as a Fixnum
+fails:Module#attr_writer converts non string/symbol/fixnum names to strings using to_str
+fails:Module#attr_writer applies current visibility to methods created

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/autoload_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/autoload_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/autoload_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,21 @@
+critical:Module#autoload? returns the name of the file that will be autoloaded
+critical:Module#autoload? returns nil if no file has been registered for a constant
+critical:Module#autoload registers a file to load the first time the named constant is accessed
+critical:Module#autoload shares the autoload request across dup'ed copies of modules
+fails:Module#autoload loads the registered constant when it is accessed
+fails:Module#autoload loads the registered constant into a dynamically created class
+fails:Module#autoload loads the registered constant into a dynamically created module
+fails:Module#autoload loads the registered constant when it is opened as a class
+fails:Module#autoload loads the registered constant when it is opened as a module
+fails:Module#autoload loads the registered constant when it is inherited from
+fails:Module#autoload loads the registered constant when it is included
+fails:Module#autoload does not load the file if the file is manually required
+fails:Module#autoload allows multiple autoload constants for a single file
+fails:Module#autoload does not remove the constant from the constant table if load fails
+fails:Module#autoload does not remove the constant from the constant table if the loaded files does not define it
+fails:Module#autoload does not load the file when refering to the constant in defined?
+fails:Module#autoload does not load the file when accessing the constants table of the module
+fails:Module#autoload loads the file when opening a module that is the autoloaded constant
+fails:Module#autoload raises a NameError when the autoload file did not define the constant and a module is opened with the same name
+fails:Module#autoload raises a TypeError if opening a class with a different superclass than the class defined in the autoload file
+fails:Module#autoload does not call Kernel#require or Kernel#load dynamically

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/case_compare_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/case_compare_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/case_compare_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#=== returns true when the given Object's class includes self or when the given Object is extended by self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_eval_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_eval_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_eval_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#class_eval shares a scope across sibling evals
+fails:Module#class_eval does not add defined methods to other classes

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#class_variable_defined? returns true if a class variables with the given name is defined in an included module
+fails:Module#class_variable_defined? accepts Fixnums for class variables

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_get_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_get_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_get_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,3 @@
+fails:Module#class_variable_get returns the value of a class variable with the given name defined in an included module
+fails:Module#class_variable_get accepts Fixnums for class variables
+fails:Module#class_variable_get raises a NameError when a Fixnum for an uninitialized class variable is given

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_set_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_set_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variable_set_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#class_variable_set accepts Fixnums for class variables
+fails:Module#class_variable_set raises a TypeError when self is frozen

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variables_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variables_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/class_variables_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,3 @@
+fails:Module#class_variables returns an Array with the names of class variables of self and self's ancestors
+fails:Module#class_variables returns an Array with names of class variables defined in metaclasses
+fails:Module#class_variables returns an Array with names of class variables defined in included modules

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/comparison_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/comparison_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/comparison_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#<=> returns -1 if self is a subclass of or includes the given module
+fails:Module#<=> returns +1 if self is a superclas of or included by the given module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/const_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/const_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/const_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#const_defined? returns false if the constant is not defined in the receiver

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/constants_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/constants_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/constants_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,4 @@
+fails:Module.constants returns an array of the names of all toplevel constants
+fails:Module.constants returns an array of Symbol names
+fails:Module#constants returns an array of Symbol names of all constants defined in the moduleand all included modules
+fails:Module#constants includes names of constants defined after a module is included

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/define_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/define_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/define_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,6 @@
+fails:Module#define_method when given an UnboundMethod correctly passes given arguments to the new method
+fails:Module#define_method when given an UnboundMethod adds the new method to the methods list
+fails:Module#define_method defines the given method as an instance method with the given name in self
+fails:Module#define_method defines a new method with the given name and the given block as body in self
+fails:Module#define_method raises a TypeError when the given method is no Method/Proc
+fails:Module#define_method should maintain the Proc's scope

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/extended_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/extended_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/extended_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#extended is private in its default implementation

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/freeze_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/freeze_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/freeze_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#freeze prevents further modifications to self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gt_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gt_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gt_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#> returns true if self is a superclass of or included by the given module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gte_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gte_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/gte_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#>= returns true if self is a superclass of, the same as or included by given module
+fails:Module#>= returns false if self is a subclass of or includes the given module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/include_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/include_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/include_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,8 @@
+fails:Module#include adds all ancestor modules when a previously included module is included again
+fails:Module#include imports constants to modules and classes
+fails:Module#include imports instance methods to modules and classes
+fails:Module#include does not import methods to modules and classes
+fails:Module#include doesn't include module if it is included in a super class
+fails:Module#include recursively includes new mixins
+fails:Module#include detects cyclic includes
+fails:Module#include? raises a TypeError when no module was given

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/included_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/included_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/included_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#included is private in its default implementation

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/initialize_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/initialize_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/initialize_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#initialize is called on subclasses

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,18 @@
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from a superclass
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from an included Module
+fails:Module#instance_method gives UnboundMethod method name, Module defined in and Module extracted from
+fails:Module#instance_method raises an ArgumentError if passed a Fixnum that is not a symbol
+fails:Module#instance_method raises a NameError if the method has been undefined
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from a superclass
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from an included Module
+fails:Module#instance_method gives UnboundMethod method name, Module defined in and Module extracted from
+fails:Module#instance_method raises an ArgumentError if passed a Fixnum that is not a symbol
+fails:Module#instance_method raises a NameError if the method has been undefined
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from a superclass
+critical:Module#instance_method returns an UnboundMethod corresponding to the given name from an included Module
+fails:Module#instance_method gives UnboundMethod method name, Module defined in and Module extracted from
+fails:Module#instance_method raises an ArgumentError if passed a Fixnum that is not a symbol
+fails:Module#instance_method raises a NameError if the method has been undefined

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_methods_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_methods_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/instance_methods_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#instance_methods does not return undefined methods

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lt_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lt_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lt_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#< returns true if self is a subclass of or includes the given module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lte_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lte_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/lte_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#<= returns true if self is a subclass of, the same as or includes the given module
+fails:Module#<= returns false if self is a superclass of or is included by the given module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_added_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_added_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_added_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#method_added is a private instance method
+fails:Module#method_added is called when a new method is defined in self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#method_defined? returns true if a public or private method with the given name is defined in self, self's ancestors or one of self's included modules
+fails:Module#method_defined? converts the given name to a string using to_str

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_undefined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_undefined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/method_undefined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#method_undefined is called when a method is undefined from self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_eval_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_eval_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_eval_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#module_eval shares a scope across sibling evals
+fails:Module#module_eval does not add defined methods to other classes

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_function_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_function_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/module_function_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,5 @@
+fails:Module#module_function with specific method names creates duplicates of the given instance methods on the Module object
+fails:Module#module_function with specific method names makes the instance methods private
+fails:Module#module_function as a toggle (no arguments) in a Module body stops creating module functions if the body encounters another toggle like public/protected/private without arguments
+fails:Module#module_function as a toggle (no arguments) in a Module body does not affect module_evaled method definitions also if outside the eval itself
+fails:Module#module_function as a toggle (no arguments) in a Module body has no effect if inside a module_eval if the definitions are outside of it

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/name_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/name_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/name_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#name returns the name of self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/nesting_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/nesting_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/nesting_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module::Nesting returns the list of Modules nested at the point of call
+fails:Module::Nesting returns the nesting for module/class declaring the called method

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_class_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_class_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_class_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,6 @@
+fails:Module#private_class_method makes an existing class method private
+fails:Module#private_class_method makes an existing class method private up the inheritance tree
+fails:Module#private_class_method accepts more than one method at a time
+fails:Module#private_class_method makes a class method private
+fails:Module#private_class_method raises a NameError when the given name is an instance method
+fails:Module#private_class_method raises a NameError when the given name is not a method
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_instance_methods_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_instance_methods_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_instance_methods_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#private_instance_methods returns a list of private methods in module and its ancestors

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_method_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_method_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_method_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,4 @@
+fails:Module#private_method_defined? returns true if the named private method is defined by module or its ancestors
+fails:Module#private_method_defined? accepts symbols for the method name
+fails:Module#private_method_defined? raises an ArgumentError if passed a Fixnum
+fails:Module#private_method_defined? calls #to_str to coerce the passed object to a String

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/private_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#private should make the target method uncallable from other types

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_instance_methods_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_instance_methods_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_instance_methods_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#protected_instance_methods returns a list of protected methods in module and its ancestors
+fails:Module#protected_instance_methods when passed false as a parameter, should return only methods defined in that module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_method_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_method_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_method_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,4 @@
+fails:Module#protected_method_defined? returns true if the named protected method is defined by module or its ancestors
+fails:Module#protected_method_defined? accepts symbols for the method name
+fails:Module#protected_method_defined? raises an ArgumentError if passed a Fixnum
+fails:Module#protected_method_defined? accepts any object that is a String type

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/protected_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#protected makes an existing class method protected

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_class_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_class_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_class_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,5 @@
+fails:Module#public_class_method makes an existing class method public
+fails:Module#public_class_method makes an existing class method public up the inheritance tree
+fails:Module#public_class_method accepts more than one method at a time
+fails:Module#public_class_method raises a NameError when the given name is an instance method
+fails:Module#public_class_method raises a NameError when the given name is not a method
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_instance_methods_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_instance_methods_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_instance_methods_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1 @@
+fails:Module#public_instance_methods when passed false as a parameter, should return only methods defined in that module

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_method_defined_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_method_defined_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/public_method_defined_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,4 @@
+fails:Module#public_method_defined? returns true if the named public method is defined by module or its ancestors
+fails:Module#public_method_defined? accepts symbols for the method name
+fails:Module#public_method_defined? raises an ArgumentError if called with a Fixnum
+fails:Module#public_method_defined? accepts any object that is a String type

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_const_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_const_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_const_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,3 @@
+fails:Module#remove_const removes the constant specified by a String or Symbol from the receiver's constant table
+fails:Module#remove_const raises a NameError if the constant is not defined directly in the module
+fails:Module#remove_const is a private method

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/remove_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,2 @@
+fails:Module#remove_method removes method from subclass, but not parent
+fails:Module#remove_method raises a NameError when attempting to remove method further up the inheritance tree

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/undef_method_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/undef_method_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/module/undef_method_tags.txt	2009-05-31 22:19:19 UTC (rev 1682)
@@ -0,0 +1,4 @@
+fails:Module#undef_method with symbol removes a method defined in a class
+fails:Module#undef_method with symbol removes a method defined in a super class
+fails:Module#undef_method with string removes a method defined in a class
+fails:Module#undef_method with string removes a method defined in a super class
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090531/3215db90/attachment-0001.html>


More information about the macruby-changes mailing list