Skip to content

Commit

Permalink
add the rubyspec's tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Apr 3, 2012
1 parent 6f271a4 commit 72c8fd5
Show file tree
Hide file tree
Showing 39 changed files with 136 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/frozen/command_line/dash_a_tags.txt
@@ -1 +1,2 @@
fails:The -a command line option runs the code in loop conditional on Kernel.gets()
fails:The -a command line option sets $-a
1 change: 1 addition & 0 deletions spec/frozen/command_line/dash_p_tags.txt
@@ -1 +1,2 @@
fails:The -p command line option runs the code in loop conditional on Kernel.gets() and prints $_
fails:The -p command line option sets $-p
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/array/rotate_tags.txt
@@ -0,0 +1,2 @@
fails:Array#rotate with an argument n raises a TypeError if not passed an integer-like argument
fails:Array#rotate! with an argument n raises a TypeError if not passed an integer-like argument
3 changes: 3 additions & 0 deletions spec/frozen/tags/macruby/core/basicobject/__id__tags.txt
@@ -0,0 +1,3 @@
fails:BasicObject#__id__ returns an integer
fails:BasicObject#__id__ returns the same value on all calls to id for a given object
fails:BasicObject#__id__ returns different values for different objects
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/fixnum/succ_tags.txt
@@ -0,0 +1 @@
fails:Fixnum#succ overflows a Fixnum to a Bignum
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/integer/next_tags.txt
@@ -0,0 +1,2 @@
fails:Integer#next overflows a Fixnum to a Bignum
fails:Integer#next underflows a Bignum to a Fixnum
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/integer/succ_tags.txt
@@ -0,0 +1,2 @@
fails:Integer#succ overflows a Fixnum to a Bignum
fails:Integer#succ underflows a Bignum to a Fixnum
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/kernel/instance_eval_tags.txt
@@ -1,2 +1,4 @@
fails:Kernel#instance_eval doesn't pass the object to the block
fails:Kernel#instance_eval treats block-local variables as local to the block
fails:Kernel#instance_eval yields the object to the block
fails:Kernel#instance_eval returns nil
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/kernel/taint_tags.txt
@@ -0,0 +1 @@
fails:Kernel#taint raises RuntimeError on an untainted, frozen object
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/kernel/untaint_tags.txt
@@ -0,0 +1 @@
fails:Kernel#untaint raises RuntimeError on a tainted, frozen object
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/main/include_tags.txt
@@ -0,0 +1 @@
fails:main#include in a file loaded with wrapping includes the given Module in the load wrapper
66 changes: 66 additions & 0 deletions spec/frozen/tags/macruby/core/marshal/dump_tags.txt
Expand Up @@ -23,3 +23,69 @@ fails:Marshal.dump dumps a Regexp subclass /i
fails:Marshal.dump dumps a Random
fails:Marshal.dump invokes respond_to? for marshal_dump and _dump on user classes
fails:Marshal.dump attempts to invoke _dump if respond_to? :_dump is true
fails:Marshal.dump nil returns a binary string
fails:Marshal.dump 1..2 returns a binary string
fails:Marshal.dump 1...2 returns a binary string
fails:Marshal.dump 'a'..'b' returns a binary string
fails:Marshal.dump Struct returns a binary string
fails:Marshal.dump Symbol returns a binary string
fails:Marshal.dump true returns a binary string
fails:Marshal.dump false returns a binary string
fails:Marshal.dump String empty returns a binary string
fails:Marshal.dump String small returns a binary string
fails:Marshal.dump String big returns a binary string
fails:Marshal.dump String extended returns a binary string
fails:Marshal.dump String subclass returns a binary string
fails:Marshal.dump String subclass extended returns a binary string
fails:Marshal.dump Symbol small returns a binary string
fails:Marshal.dump Symbol big returns a binary string
fails:Marshal.dump Bignum -2**64 returns a binary string
fails:Marshal.dump Bignum -2**63 returns a binary string
fails:Marshal.dump Fixnum -2**24 returns a binary string
fails:Marshal.dump Fixnum -2**16 returns a binary string
fails:Marshal.dump Fixnum -2**8 returns a binary string
fails:Marshal.dump Fixnum -123 returns a binary string
fails:Marshal.dump Fixnum 0 returns a binary string
fails:Marshal.dump Fixnum 5 returns a binary string
fails:Marshal.dump Fixnum 2**8 returns a binary string
fails:Marshal.dump Fixnum 2**16 returns a binary string
fails:Marshal.dump Fixnum 2**24 returns a binary string
fails:Marshal.dump Bignum 2**64 returns a binary string
fails:Marshal.dump Bignum 2**90 returns a binary string
fails:Marshal.dump Class String returns a binary string
fails:Marshal.dump Module Marshal returns a binary string
fails:Marshal.dump Module nested returns a binary string
fails:Marshal.dump _dump object returns a binary string
fails:Marshal.dump _dump object extended returns a binary string
fails:Marshal.dump marshal_dump object returns a binary string
fails:Marshal.dump Regexp returns a binary string
fails:Marshal.dump Regexp subclass /i returns a binary string
fails:Marshal.dump Float 0.0 returns a binary string
fails:Marshal.dump Float -0.0 returns a binary string
fails:Marshal.dump Float Infinity returns a binary string
fails:Marshal.dump Float -Infinity returns a binary string
fails:Marshal.dump Float 1.0 returns a binary string
fails:Marshal.dump Hash returns a binary string
fails:Marshal.dump Hash subclass returns a binary string
fails:Marshal.dump Array returns a binary string
fails:Marshal.dump Array subclass returns a binary string
fails:Marshal.dump Random returns a binary string
fails:Marshal.dump returns an untrusted string if nested object is untrusted
fails:Marshal.dump with a Symbol dumps an encoded Symbol
fails:Marshal.dump with a String dumps a US-ASCII String
fails:Marshal.dump with a String dumps a UTF-8 String
fails:Marshal.dump with a String dumps a String in another encoding
fails:Marshal.dump with a Regexp dumps a Regexp
fails:Marshal.dump with a Regexp dumps a Regexp with flags
fails:Marshal.dump with a Regexp dumps a Regexp with instance variables
fails:Marshal.dump with a Regexp dumps an extended Regexp
fails:Marshal.dump with a Regexp dumps a Regexp subclass
fails:Marshal.dump with a Regexp dumps a binary Regexp
fails:Marshal.dump with a Regexp dumps a UTF-8 Regexp
fails:Marshal.dump with a Regexp dumps a Regexp in another encoding
fails:Marshal.dump with an Array dumps an Array with instance variables
fails:Marshal.dump with a Hash dumps a Hash with a default value
fails:Marshal.dump with a Hash raises a TypeError with hash having default proc
fails:Marshal.dump with a Hash dumps a Hash with instance variables
fails:Marshal.dump with a Hash dumps an Hash subclass with a parameter to initialize
fails:Marshal.dump with a Struct dumps a Struct with instance variables
7 changes: 7 additions & 0 deletions spec/frozen/tags/macruby/core/marshal/load_tags.txt
Expand Up @@ -6,3 +6,10 @@ fails:Marshal::load loads a Random
fails:Marshal::load returns an untrusted object if source is untrusted
fails:Marshal::load for a Hash preserves hash ivars when hash contains a string having ivar
fails:Marshal::load for a wrapped C pointer loads
fails:Marshal.load returns an untrusted object if source is untrusted
fails:Marshal.load loads a 1..2
fails:Marshal.load loads a 1...2
fails:Marshal.load loads a 'a'..'b'
fails:Marshal.load loads a Random
fails:Marshal.load for a Hash preserves hash ivars when hash contains a string having ivar
fails:Marshal.load for a wrapped C pointer loads
7 changes: 7 additions & 0 deletions spec/frozen/tags/macruby/core/marshal/restore_tags.txt
@@ -0,0 +1,7 @@
fails:Marshal.restore returns an untrusted object if source is untrusted
fails:Marshal.restore loads a 1..2
fails:Marshal.restore loads a 1...2
fails:Marshal.restore loads a 'a'..'b'
fails:Marshal.restore loads a Random
fails:Marshal.restore for a Hash preserves hash ivars when hash contains a string having ivar
fails:Marshal.restore for a wrapped C pointer loads
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/arity_tags.txt
@@ -0,0 +1 @@
fails:Method#arity for a Method generated by respond_to_missing? returns -1
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/call_tags.txt
@@ -0,0 +1 @@
fails:Method#call for a Method generated by respond_to_missing? it invokes method_missing with the specified arguments and returns the result
@@ -0,0 +1 @@
fails:Method#[] for a Method generated by respond_to_missing? it invokes method_missing with the specified arguments and returns the result
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/method/eql_tags.txt
@@ -1,3 +1,5 @@
fails:Method#eql? returns true if the two core methods are aliases
fails:Method#eql? returns true for methods defined using the same block/proc
fails:Method#eql? returns true for the same method missing
fails:Method#eql? missing methods returns true for the same method missing
fails:Method#eql? missing methods calls respond_to_missing? with true to include private methods
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/method/equal_value_tags.txt
@@ -1,3 +1,5 @@
fails:Method#== returns true if the two core methods are aliases
fails:Method#== returns true for methods defined using the same block/proc
fails:Method#== returns true for the same method missing
fails:Method#== missing methods returns true for the same method missing
fails:Method#== missing methods calls respond_to_missing? with true to include private methods
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/method/hash_tags.txt
@@ -0,0 +1,2 @@
fails:Method#hash returns the same value for user methods that are eql?
fails:Method#hash returns the same value for builtin methods that are eql?
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/name_tags.txt
@@ -0,0 +1 @@
fails:Method#name for a Method generated by respond_to_missing? it returns the name passed to respond_to_missing?
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/owner_tags.txt
@@ -1,2 +1,3 @@
fails:Method#owner returns the owner of the method
fails:Method#owner returns the class/module it was defined in
fails:Method#owner for a Method generated by respond_to_missing? it returns the owner of the method
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/parameters_tags.txt
Expand Up @@ -34,3 +34,4 @@ fails:Method#parameters returns [[:req, :x], [:req, :y]] for a define_method met
fails:Method#parameters returns [] for a define_method method with no args specification
fails:Method#parameters returns [[:req]] for a define_method method with a grouping as its only argument
fails:Method#parameters returns [[:opt, :x]] for a define_method method with an optional argument 'x'
fails:Method#parameters it returns [[:rest]] for a Method generated by respond_to_missing?
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/method/receiver_tags.txt
@@ -0,0 +1 @@
fails:Method#receiver for a Method generated by respond_to_missing? it returns the receiver of the method
Expand Up @@ -9,3 +9,4 @@ fails:Method#source_location works for methods defined with a block
fails:Method#source_location works for methods defined with a Method
fails:Method#source_location works for methods defined with an UnboundMethod
fails:Method#source_location works for methods whose visibility has been overridden in a subclass
fails:Method#source_location for a Method generated by respond_to_missing? it returns nil
Expand Up @@ -5,3 +5,4 @@ fails:Module#define_method passed { |a, *b| } creates a method that raises an A
fails:Module#define_method passed { |a, b, *c| } creates a method that raises an ArgumentError when passed zero arguments
fails:Module#define_method passed { |a, b, *c| } creates a method that raises an ArgumentError when passed one argument
fails:Module#define_method passed { |a, b, *c| } creates a method that raises an ArgumentError when passed one argument and a block
fails:Module#define_method raises a RuntimeError if frozen
3 changes: 3 additions & 0 deletions spec/frozen/tags/macruby/core/module/name_tags.txt
@@ -0,0 +1,3 @@
fails:Module#name is nil for a nested module created with the module keyword
fails:Module#name is set with a conditional assignment to a nested constant
fails:Module#name is set with a conditional assignment to a constant
Empty file.
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/string/allocate_tags.txt
@@ -0,0 +1 @@
fails:String.allocate returns a binary String
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/string/new_tags.txt
@@ -0,0 +1 @@
fails:String.new returns a binary String
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/thread/element_set_tags.txt
@@ -0,0 +1,2 @@
fails:Thread#[]= is not shared across fibers
fails:Thread#[]= stores a local in another thread when in a fiber
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/thread/key_tags.txt
@@ -0,0 +1,2 @@
fails:Thread#key? is not shared across fibers
fails:Thread#key? stores a local in another thread when in a fiber
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/thread/keys_tags.txt
@@ -0,0 +1,2 @@
fails:Thread#keys is not shared across fibers
fails:Thread#keys stores a local in another thread when in a fiber
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/unboundmethod/hash_tags.txt
@@ -0,0 +1,2 @@
fails:UnboundMethod#hash returns the same value for user methods that are eql?
fails:UnboundMethod#hash returns the same value for builtin methods that are eql?
@@ -1,2 +1,6 @@
fails:UnboundMethod#source_location works for define_method methods
fails:UnboundMethod#source_location works for define_singleton_method methods
fails:UnboundMethod#source_location sets the first value to the path of the file in which the method was defined
fails:UnboundMethod#source_location sets the last value to a Fixnum representing the line on which the method was defined
fails:UnboundMethod#source_location returns the last place the method was defined
fails:UnboundMethod#source_location returns the location of the original method even if it was aliased
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/language/block_tags.txt
Expand Up @@ -8,3 +8,4 @@ fails:A block taking |a, *b| arguments raises an TypeError if #to_ary does not r
fails:A block taking |a, | arguments calls #to_ary to convert a single yielded object to an Array
fails:A block taking |a, | arguments raises an TypeError if #to_ary does not return an Array
fails:A block taking |(a, b), c| arguments calls #to_ary to convert a single yielded object to an Array
fails:Post-args are required
4 changes: 4 additions & 0 deletions spec/frozen/tags/macruby/language/module_tags.txt
@@ -1,3 +1,7 @@
fails:module raises a TypeError if the constant is a class
fails:An anonymous module takes on the name of the first constant it is assigned to
fails:An anonymous module forces named nested modules to be anonymous
fails:The module keyword creates a new module with a non-qualified constant name
fails:The module keyword creates a new module with a qualified constant name
fails:The module keyword creates a new module with a variable qualified constant name
fails:The module keyword raises a TypeError if the constant is a Class
Expand Up @@ -2,3 +2,4 @@ fails:Regexps with modifers supports /o (once)
fails:Regexps with modifers invokes substitutions for /o only once
fails:Regexps with modifers supports (?imx-imx) (inline modifiers)
fails:Regexps with modifers supports (?imx-imx:expr) (scoped inline modifiers)
fails:Regexps with modifers raises SyntaxError for ASII/Unicode modifiers
@@ -0,0 +1 @@
fails:OpenStruct#initialize_copy generates the same methods

0 comments on commit 72c8fd5

Please sign in to comment.