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 Aug 27, 2012
1 parent e80daf7 commit 763023f
Show file tree
Hide file tree
Showing 28 changed files with 84 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fails:BasicObject metaclass has Class as superclass
fails:BasicObject includes itself in its list of constants
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/file/expand_path_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fails:File.expand_path produces a String in the default external encoding
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~' if HOME is nil
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~' if HOME == ''
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~/' if HOME is nil
4 changes: 4 additions & 0 deletions spec/frozen/tags/macruby/core/float/to_s_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
fails:Float#to_s uses non-e format for a positive value with whole part having 16 decimal places
fails:Float#to_s uses non-e format for a negative value with whole part having 15 decimal places
fails:Float#to_s outputs the minimal, unique form necessary to recreate the value
fails:Float#to_s uses non-e format for a positive value with whole part having 16 significant figures
fails:Float#to_s uses non-e format for a negative value with whole part having 16 significant figures
fails:Float#to_s uses non-e format for a positive value with whole part having 17 significant figures
fails:Float#to_s uses non-e format for a negative value with whole part having 17 significant figures
6 changes: 6 additions & 0 deletions spec/frozen/tags/macruby/core/kernel/spawn_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fails:Kernel#spawn does not unset environment variables included in the environment hash
fails:Kernel#spawn joins a new process group if :pgroup => :true
fails:Kernel#spawn joins the specified process group if :pgroup => pgid
fails:Kernel.spawn joins a new process group if :pgroup => :true
fails:Kernel.spawn joins the specified process group if :pgroup => pgid
fails:Kernel.spawn does not unset environment variables included in the environment hash
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/marshal/dump_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ 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
fails:Marshal.dump with a String dumps multiple strings using symlinks for the :E (encoding) symbol
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/marshal/load_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ 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
fails:Marshal.load for a String loads a string through StringIO stream
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/marshal/restore_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ 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
fails:Marshal.restore for a String loads a string through StringIO stream
4 changes: 4 additions & 0 deletions spec/frozen/tags/macruby/core/proc/arity_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ fails:Proc#arity returns -1 for a block taking one optional argument
fails:Proc#arity returns -2 for a block taking |a, b = 0| argument
fails:Proc#arity returns -2 for a block taking |a, b = 0, c = 0| argument
fails:Proc#arity returns -2 for a block taking |(a, b), c = 0| argument
fails:Proc#arity returns 0 for a Proc taking one optional argument
fails:Proc#arity returns 1 for a Proc taking |a, b = 0| argument
fails:Proc#arity returns 1 for a Proc taking |a, b = 0, c = 0| argument
fails:Proc#arity returns 1 for a Proc taking |(a, b), c = 0| argument
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/proc/inspect_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Proc#inspect returns a description of self
3 changes: 3 additions & 0 deletions spec/frozen/tags/macruby/core/process/detach_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ fails:Process#detach returns a thread
fails:Process#detach reaps the child process's status automatically
fails:Process.detach returns a thread
fails:Process.detach reaps the child process's status automatically
fails:Process.detach produces the exit Process::Status as the thread value
fails:Process.detach sets the :pid thread-local to the PID
fails:Process.detach provides a #pid method on the returned thread which returns the PID
9 changes: 5 additions & 4 deletions spec/frozen/tags/macruby/core/process/kill_tags.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
critical:Process.kill sends the given signal to the current process if pid is zero
critical:Process.kill accepts POSIX signal names without 'SIG' prefix
critical:Process.kill accepts integer signal numbers
critical:Process.kill accepts POSIX signal names with 'SIG' prefix
critical:Process.kill signals the process group if the PID is zero
critical:Process.kill signals the process group if the PID is zero
critical:Process.kill signals the process group if the signal number is negative
critical:Process.kill signals the process group if the short signal name starts with a minus sign
critical:Process.kill signals the process group if the full signal name starts with a minus sign
fails:Process.kill tests for the existence of a process without sending a signal
fails:Process.kill sends the given signal to the specified process
fails:Process.kill kills process groups if signal is negative
Expand Down
4 changes: 4 additions & 0 deletions spec/frozen/tags/macruby/core/process/spawn_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fails:Process.spawn does not unset environment variables included in the environment hash
fails:Process.spawn joins a new process group if :pgroup => :true
fails:Process.spawn joins the specified process group if :pgroup => pgid
fails:Process.spawn does not unset environment variables included in the environment hash
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/rational/round_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
critical:Rational#round doesn't fail when rounding to an absurdly large positive precision
5 changes: 5 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/compile_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ fails:Regexp.compile given a Regexp sets the encoding to EUC-JP if the Regexp li
fails:Regexp.compile given a Regexp sets the encoding to Windows-31J if the Regexp literal has the 's' option
fails:Regexp.compile given a Regexp sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only
fails:Regexp.compile given a Regexp sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only
fails:Regexp.compile given a String ignores the third argument if it is 'e' or 'euc' (case-insensitive)
fails:Regexp.compile given a String ignores the third argument if it is 's' or 'sjis' (case-insensitive)
fails:Regexp.compile given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)
fails:Regexp.compile given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters
fails:Regexp.compile given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/escape_tags.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
fails:Range.escape sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String
fails:Range.escape sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding
fails:Regexp.escape sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String
fails:Regexp.escape sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fails:Regexp#fixed_encoding? returns true if the 'u' modifier was supplied to the Regexp
fails:Regexp#fixed_encoding? returns true if the 's' modifier was supplied to the Regexp
fails:Regexp#fixed_encoding? returns true if the 'e' modifier was supplied to the Regexp
fails:Regexp#fixed_encoding? returns true if the Regexp was created with the Regexp::FIXEDENCODING option
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/initialize_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Regexp#initialize raises a SecurityError on a Regexp literal
fails:Regexp#initialize raises a TypeError on an initialized non-literal Regexp
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/core/regexp/inspect_tags.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fails:Regexp#inspect doesn't over escape forward slashes
fails:Regexp#inspect returns options in the order 'mixn'
5 changes: 5 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/new_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ fails:Regexp.new given a Regexp sets the encoding to EUC-JP if the Regexp litera
fails:Regexp.new given a Regexp sets the encoding to Windows-31J if the Regexp literal has the 's' option
fails:Regexp.new given a Regexp sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only
fails:Regexp.new given a Regexp sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only
fails:Regexp.new given a String ignores the third argument if it is 'e' or 'euc' (case-insensitive)
fails:Regexp.new given a String ignores the third argument if it is 's' or 'sjis' (case-insensitive)
fails:Regexp.new given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)
fails:Regexp.new given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters
fails:Regexp.new given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters
5 changes: 5 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/options_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'u' option
fails:Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'e' option
fails:Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 's' option
fails:Regexp#options does not include Regexp::FIXEDENCODING for a Regexp literal with the 'n' option
fails:Regexp#options includes Regexp::NOENCODING for a Regexp literal with the 'n' option
19 changes: 19 additions & 0 deletions spec/frozen/tags/macruby/core/regexp/union_tags.txt
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
fails:Regexp.union raises ArgumentError if the kcodes conflict
fails:Regexp.union returns a Regexp with the encoding of an ASCII-incompatible String argument
fails:Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters
fails:Regexp.union returns a Regexp with US-ASCII encoding if all arguments are ASCII-only
fails:Regexp.union returns a Regexp with the encoding of multiple non-conflicting ASCII-incompatible String arguments
fails:Regexp.union returns a Regexp with the encoding of multiple non-conflicting Strings containing non-ASCII-compatible characters
fails:Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters and another ASCII-only String
fails:Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Strings
fails:Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Regexps
fails:Regexp.union raises ArgumentError if the arguments include conflicting fixed encoding Regexps
fails:Regexp.union raises ArgumentError if the arguments include a fixed encoding Regexp and a String containing non-ASCII-compatible characters in a different encoding
fails:Regexp.union raises ArgumentError if the arguments include a String containing non-ASCII-compatible characters and a fixed encoding Regexp in a different encoding
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only String
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only String
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only Regexp
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only Regexp
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a String containing non-ASCII-compatible characters in a different encoding
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a String containing non-ASCII-compatible characters in a different encoding
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a Regexp containing non-ASCII-compatible characters in a different encoding
fails:Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a Regexp containing non-ASCII-compatible characters in a different encoding
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/core/symbol/encoding_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Symbol#encoding for ASCII symbols should be US-ASCII
fails:Symbol#encoding for ASCII symbols should be US-ASCII after converting to string
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/language/array_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:The unpacking splat operator (*) returns a new array containing the same values when applied to an array inside an empty array
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/language/block_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ fails:A block taking |a, | arguments calls #to_ary to convert a single yielded o
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
fails:A block arguments with _ assigns the first variable named
2 changes: 2 additions & 0 deletions spec/frozen/tags/macruby/language/defined_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ fails:The defined? keyword for super for a method taking no arguments returns 's
fails:The defined? keyword for super for a method taking no arguments returns 'super' from a block in a #define_method when a superclass method exists
fails:The defined? keyword for super for a method taking arguments returns 'super' from a #define_method when a superclass method exists
fails:The defined? keyword for super for a method taking arguments returns 'super' from a block in a #define_method when a superclass method exists
fails:The defined? keyword for super for a method taking no arguments returns 'super' from a block when a superclass method exists
fails:The defined? keyword for super for a method taking arguments returns 'super' from a block when a superclass method exists
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/language/retry_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
critical:The retry statement raises a SyntaxError when used outside of a begin statement
1 change: 1 addition & 0 deletions spec/frozen/tags/macruby/language/super_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ fails:The super keyword calls the superclass method when initial method is defin
fails:The super keyword supers up appropriate name even if used for multiple method names
fails:The super keyword can't be used with implicit arguments from a method defined with define_method
fails:The super keyword can call through a define_method multiple times (caching check)
fails:The super keyword can be used with implicit arguments from a method defined with define_method
3 changes: 3 additions & 0 deletions spec/frozen/tags/macruby/library/weakref/send_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:WeakRef#__send__ delegates to public methods of the weakly-referenced object
fails:WeakRef#__send__ delegates to protected methods of the weakly-referenced object
fails:WeakRef#__send__ does not delegate to private methods of the weakly-referenced object

0 comments on commit 763023f

Please sign in to comment.