[macruby-changes] [1963] MacRuby/branches/experimental/spec/frozen/tags/macruby/core

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 1 16:48:25 PDT 2009


Revision: 1963
          http://trac.macosforge.org/projects/ruby/changeset/1963
Author:   eloy.de.enige at gmail.com
Date:     2009-07-01 16:48:25 -0700 (Wed, 01 Jul 2009)
Log Message:
-----------
Tagged failing examples.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/divmod_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/quo_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/remainder_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/chr_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/open_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_char_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_line_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/force_encoding_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/upto_tags.txt

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/binmode_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/class/superclass_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/abs_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/angle_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/arg_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/coerce_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conj_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conjugate_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/denominator_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/divide_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/equal_value_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/exponent_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/backtrace_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/exception_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/close_write_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/method/source_location_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/abs2_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/denominator_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/fdiv_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chars_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chr_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/clear_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/codepoints_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_codepoint_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/encoding_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/lines_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/ord_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_c_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_r_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/binmode_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/binmode_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/binmode_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:ARGF.binmode sets the file's encoding to ASCII-8BIT

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1 +1,2 @@
 fails:ARGF.rewind raises an ArgumentError when end of stream reached
+fails:ARGF.rewind resets ARGF.lineno to 0

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -3,3 +3,6 @@
 fails:Bignum#<=> returns 1 when self is negative and other is Infinty
 fails:Bignum#<=> returns 1 when self is Infinity and other is a Bignum
 fails:Bignum#<=> returns 1 when self is negative and other is Infinty
+fails:Bignum#<=> returns 1 when self is negative and other is -Infinity
+fails:Bignum#<=> returns -1 when self is negative and other is Infinty
+fails:Bignum#<=> returns -1 when self is negative and other is Infinty

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/divmod_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/divmod_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/divmod_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1,2 +1,3 @@
 fails:Bignum#divmod raises a FloatDomainError when the given argument is 0 and a Float
 fails:Bignum#divmod raises a TypeError when the given argument is not an Integer
+fails:Bignum#divmod raises a ZeroDivisionError when the given argument is 0 and a Float

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/quo_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/quo_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/quo_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -2,3 +2,5 @@
 fails:Bignum#quo does not raise a ZeroDivisionError when the given Integer is 0
 fails:Bignum#quo does not raise a FloatDomainError when the given Integer is 0 and a Float
 fails:Bignum#quo raises a TypeError when given a non-Integer
+fails:Bignum#quo raises a ZeroDivisionError when the given Integer is 0
+fails:Bignum#quo does not raise a FloatDomainError when the given argument is 0 and a Float

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/remainder_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/remainder_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/remainder_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1 +1,2 @@
 fails:Bignum#remainder returns the remainder of dividing self by other
+fails:Bignum#remainder does raises ZeroDivisionError if other is zero and a Float

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/class/superclass_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/class/superclass_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/class/superclass_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Class#superclass returns the superclass of self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/abs_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/abs_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/abs_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#abs returns the modulus: |a + bi| = sqrt((a ^ 2) + (b ^ 2))

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/angle_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/angle_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/angle_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#angle returns the argument -- i.e., the angle from (1, 0) in the complex plane

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/arg_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/arg_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/arg_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#arg returns the argument -- i.e., the angle from (1, 0) in the complex plane

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/coerce_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/coerce_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/coerce_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,5 @@
+fails:Complex#coerce returns an array containing other and self as Complex when other is an Integer
+fails:Complex#coerce returns an array containing other and self as Complex when other is a Float
+fails:Complex#coerce returns an array containing other and self as Complex when other is a Bignum
+fails:Complex#coerce returns an array containing other and self as Complex when other is a Rational
+fails:Complex#coerce raises a TypeError when other is a String

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conj_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conj_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conj_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#conj returns the complex conjugate: conj a + bi = a - bi

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conjugate_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conjugate_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/conjugate_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#conjugate returns the complex conjugate: conj a + bi = a - bi

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/denominator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/denominator_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/denominator_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Complex#denominator returns the least common multiple denominator of the real and imaginary parts

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/divide_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/divide_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/divide_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,7 @@
+fails:Complex#/ with Complex divides according to the usual rule for complex numbers
+fails:Complex#/ with Fixnum divides both parts of the Complex number
+fails:Complex#/ with Fixnum raises a ZeroDivisionError when given zero
+fails:Complex#/ with Bignum divides both parts of the Complex number
+fails:Complex#/ with Float divides both parts of the Complex number
+fails:Complex#/ with Float returns (Infinity+Infinity*i) when given zero
+fails:Complex#/ with Object tries to coerce self into other

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/equal_value_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/equal_value_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/equal_value_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,3 @@
+fails:Complex#== with Complex returns true when self and other have numerical equality
+fails:Complex#== with Numeric returns true when self's imaginery part is 0 and the real part and other have numerical equality
+fails:Complex#== with Object calls other#== with self

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/exponent_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/exponent_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/exponent_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,5 @@
+fails:Complex#** when given 0 returns Complex(1)
+fails:Complex#** with Complex returns self raised to the given power
+fails:Complex#** with Integer returns self raised to the given power
+fails:Complex#** with Rational returns self raised to the given power
+fails:Complex#** with Object tries to coerce self into other

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/backtrace_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/backtrace_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/backtrace_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,9 @@
+fails:Exception#backtrace returns nil if no backtrace was set
+fails:Exception#backtrace returns an Array
+fails:Exception#backtrace sets each element to a String
+fails:Exception#backtrace includes the filename of the location where self raised in the first element
+fails:Exception#backtrace includes the line number of the location where self raised in the first element
+fails:Exception#backtrace includes the name of the method from where self raised in the first element
+fails:Exception#backtrace includes the filename of the location immediately prior to where self raised in the second element
+fails:Exception#backtrace includes the line number of the location immediately prior to where self raised in the second element
+fails:Exception#backtrace contains lines of the same format for each prior position in the stack

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/exception_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/exception_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/exception/exception_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Exception is a superclass of EncodingError

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -3,3 +3,8 @@
 fails:Numeric#numerator returns NaN for NaN
 fails:Numeric#numerator returns Infinity for Infinity
 fails:Numeric#numerator returns -Infinity for Infinity
+fails:Float#numerator converts self to a Rational object then returns its numerator
+fails:Float#numerator returns 0 for 0.0
+fails:Float#numerator returns NaN for NaN
+fails:Float#numerator returns Infinity for Infinity
+fails:Float#numerator returns -Infinity for Infinity

Modified: 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	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/hash/default_proc_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -2,3 +2,4 @@
 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
+fails:Hash#default_proc= raises an error if passed stuff not convertible to procs

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/chr_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/chr_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/chr_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1 +1,14 @@
 critical:Integer#chr raises a RangeError if self is out of the ASCII character range
+fails:Integer#chr without argument returns a String
+fails:Integer#chr without argument returns a US-ASCII String if self is between 0 and 127 (inclusive)
+fails:Integer#chr without argument interprets self as a codepoint in the corresponding character set
+fails:Integer#chr without argument raises a RangeError is self is greater than 255 and the internal encoding is nil
+fails:Integer#chr without argument infers the encoding from Encoding.default_internal
+fails:Integer#chr with an encoding argument returns a String
+fails:Integer#chr with an encoding argument converts a String to an Encoding as Encoding.find does
+fails:Integer#chr with an encoding argument returns characters in the specified encoding even if they exist in US-ASCII
+fails:Integer#chr with an encoding argument behaves as called with no argument if encoding is specified as US-ASCII and self is less than 128
+fails:Integer#chr with an encoding argument behaves as called with no argument if encoding is specified as ASCII-8BIT and self is between 128 and 255
+fails:Integer#chr with an encoding argument interprets self as a codepoint in the corresponding character set
+fails:Integer#chr with an encoding argument raises a RangeError if self is an invalid codepoint for the given encoding
+fails:Integer#chr with an encoding argument raises a RangeError is self is less than 0

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/close_write_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/close_write_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/close_write_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,3 @@
+fails:IO#close_write raises an IOError on subsequent invocations
+fails:IO#close_write raises an IOError if the stream is readable and not duplexed
+fails:IO#close_write raises IOError on closed stream

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/open_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/open_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/open_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -4,3 +4,4 @@
 fails:IO.open with a block invokes close on opened IO object when exiting the block
 fails:IO.open with a block propagates non-StandardErrors produced by close
 fails:IO.open takes an Integer or #to_int argument as the descriptor to open
+fails:IO.open does not close the stream automatically if given a block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/method/source_location_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/method/source_location_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/method/source_location_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,5 @@
+fails:Method#source_location returns nil for built-in methods
+fails:Method#source_location returns an Array
+fails:Method#source_location sets the first value to the path of the file in which the method was defined
+fails:Method#source_location sets the last value to a Fixnum representing the line on which the method was defined
+fails:Method#source_location returns the last place the method was defined

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/abs2_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/abs2_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/abs2_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,3 @@
+fails:Numeric#abs2 returns the square of the absolute value of self
+fails:Numeric#abs2 calls #* on self
+fails:Numeric#abs2 returns NaN when self is NaN

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/denominator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/denominator_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/denominator_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:Numeric#denominator works with Numeric subclasses

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/fdiv_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/fdiv_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/fdiv_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,2 @@
+fails:Numeric#fdiv coerces self with #to_f
+fails:Numeric#fdiv coerces other with #to_f

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1 +1,2 @@
 fails:Numeric#numerator converts self to a Rational object then returns its numerator
+fails:Numeric#numerator works with Numeric subclasses

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -8,3 +8,4 @@
 fails:Rational#div passed an Integer raises a ZeroDivisionError when the argument is 0
 fails:Rational#div passed a Float performs integer division and returns the result
 fails:Rational#div passed a Float raises a FloatDomainError when the argument is 0.0
+fails:Rational#div passed a Float raises a ZeroDivisionError when the argument is 0.0

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -5,3 +5,4 @@
 fails:Rational#divmod when passed a Float returns the quotient as Integer and the remainder as Float
 fails:Rational#divmod when passed a Float returns the quotient as Integer and the remainder as Float
 fails:Rational#divmod when passed a Float raises a FloatDomainError when passed 0
+fails:Rational#divmod when passed a Float raises a ZeroDivisionError when passed 0

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -8,3 +8,6 @@
 fails:Rational#** when passed Float returns NaN if self is negative and the passed argument is not 0
 fails:Rational#** when pass Integer returns the Rational value of self raised to the passed argument
 fails:Rational#** when pass Integer returns Rational(1, 1) when the passed argument is 0
+fails:Rational#** when passed Rational returns a complex number when self is negative and the passed argument is not 0
+fails:Rational#** when passed Float returns a complex number if self is negative and the passed argument is not 0
+fails:Rational#** when passed Float returns Complex(1.0) when the passed argument is 0.0

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chars_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chars_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chars_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,6 @@
+fails:String#chars is unicode aware
+fails:String#chars returns characters in the same encoding as self
+fails:String#chars works with multibyte characters
+fails:String#chars works if the String's contents is invalid for its encoding
+fails:String#chars returns a different character if the String is transcoded
+fails:String#chars uses the String's encoding to determine what characters it contains

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chr_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chr_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/chr_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,3 @@
+fails:String#chr returns a String in the same encoding as self
+fails:String#chr understands multi-byte characters
+fails:String#chr understands Strings that contain a mixture of character widths

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/clear_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/clear_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/clear_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1 @@
+fails:String#clear preserves its encoding

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/codepoints_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/codepoints_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/codepoints_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,11 @@
+fails:String#codepoints returns an Enumerator when no block is given
+fails:String#codepoints returns an Enumerator when no block is given even when self has an invalid encoding
+fails:String#codepoints raises an ArgumentError when self has an invalid encoding and a method is called on the returned Enumerator
+fails:String#codepoints yields each codepoint to the block if one is given
+fails:String#codepoints raises an ArgumentError if self's encoding is invalid and a block is given
+fails:String#codepoints returns codepoints as Fixnums
+fails:String#codepoints returns one codepoint for each character
+fails:String#codepoints works for multibyte characters
+fails:String#codepoints returns the codepoint corresponding to the character's position in the String's encoding
+fails:String#codepoints round-trips to the original String using Integer#chr
+fails:String#codepoints is synonomous with #bytes for Strings which are single-byte optimisable

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_char_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_char_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_char_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1,3 +1,8 @@
 fails:String#each_char returns an enumerator when no block given
 fails:String#each_char is unicode aware
-fails:String#each_char returns self
\ No newline at end of file
+fails:String#each_char returns self
+fails:String#each_char returns characters in the same encoding as self
+fails:String#each_char works with multibyte characters
+fails:String#each_char works if the String's contents is invalid for its encoding
+fails:String#each_char returns a different character if the String is transcoded
+fails:String#each_char uses the String's encoding to determine what characters it contains

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_codepoint_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_codepoint_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_codepoint_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,11 @@
+fails:String#each_codepoint returns an Enumerator when no block is given
+fails:String#each_codepoint returns an Enumerator when no block is given even when self has an invalid encoding
+fails:String#each_codepoint raises an ArgumentError when self has an invalid encoding and a method is called on the returned Enumerator
+fails:String#each_codepoint yields each codepoint to the block if one is given
+fails:String#each_codepoint raises an ArgumentError if self's encoding is invalid and a block is given
+fails:String#each_codepoint returns codepoints as Fixnums
+fails:String#each_codepoint returns one codepoint for each character
+fails:String#each_codepoint works for multibyte characters
+fails:String#each_codepoint returns the codepoint corresponding to the character's position in the String's encoding
+fails:String#each_codepoint round-trips to the original String using Integer#chr
+fails:String#each_codepoint is synonomous with #bytes for Strings which are single-byte optimisable

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_line_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_line_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/each_line_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -5,3 +5,4 @@
 fails:String#each_line not care if the string is modified while substituting
 fails:String#each_line returns an enumerator when no block given
 fails:String#each_line tries to convert the separator to a string using to_str
+fails:String#each_line does not care if the string is modified while substituting

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/encoding_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/encoding_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/encoding_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,24 @@
+fails:String#encoding is equal to the source encoding by default
+fails:String#encoding returns the given encoding if #force_encoding has been called
+fails:String#encoding returns the given encoding if #encode!has been called
+fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII
+fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default internal encoding being different
+fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default external encoding being different
+fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default internal and external encodings being different
+fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default encodings being different
+fails:String#encoding for Strings with \u escapes returns UTF-8
+fails:String#encoding for Strings with \u escapes returns US-ASCII if self is US-ASCII only
+fails:String#encoding for Strings with \u escapes returns UTF-8 if self isn't US-ASCII only
+fails:String#encoding for Strings with \u escapes is not affected by the default internal encoding
+fails:String#encoding for Strings with \u escapes is not affected by the default external encoding
+fails:String#encoding for Strings with \u escapes is not affected by both the default internal and external encoding being set at the same time
+fails:String#encoding for Strings with \u escapes returns the given encoding if #force_encoding has been called
+fails:String#encoding for Strings with \u escapes returns the given encoding if #encode!has been called
+fails:String#encoding for Strings with \x escapes returns US-ASCII if self is US-ASCII only
+fails:String#encoding for Strings with \x escapes returns ASCII-8BIT when an escape creates a byte with the 8th bit set if the source encoding is US-ASCII
+fails:String#encoding for Strings with \x escapes returns the source encoding when an escape creates a byte with the 8th bit set if the source encoding isn't US-ASCII
+fails:String#encoding for Strings with \x escapes is not affected by the default internal encoding
+fails:String#encoding for Strings with \x escapes is not affected by the default external encoding
+fails:String#encoding for Strings with \x escapes is not affected by both the default internal and external encoding being set at the same time
+fails:String#encoding for Strings with \x escapes returns the given encoding if #force_encoding has been called
+fails:String#encoding for Strings with \x escapes returns the given encoding if #encode!has been called

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/force_encoding_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/force_encoding_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/force_encoding_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1 +1,4 @@
 critical:String#force_encoding does not transcode self
+fails:String#force_encoding tags the String with the given encoding
+fails:String#force_encoding does not care if self would be invalid in given encoding
+fails:String#force_encoding does not care if self is already tagged with the given encoding

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/lines_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/lines_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/lines_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,6 @@
+fails:String#lines taints substrings that are passed to the block if self is tainted
+fails:String#lines appends multiple successive newlines together when the separator is an empty string
+fails:String#lines yields subclass instances for subclasses
+fails:String#lines tries to convert the separator to a string using to_str
+fails:String#lines does not care if the string is modified while substituting
+fails:String#lines accept string-like separator

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/ord_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/ord_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/ord_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,2 @@
+fails:String#ord understands multibyte characters
+fails:String#ord is equivalent to #codepoints.first

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_c_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_c_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_c_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,24 @@
+fails:String#to_c returns a Complex object
+fails:String#to_c understands integers
+fails:String#to_c understands negative integers
+fails:String#to_c understands fractions (numerator/denominator) for the real part
+fails:String#to_c understands fractions (numerator/denominator) for the imaginary part
+fails:String#to_c understands negative fractions (-numerator/denominator) for the real part
+fails:String#to_c understands negative fractions (-numerator/denominator) for the imaginary part
+fails:String#to_c understands floats (a.b) for the real part
+fails:String#to_c understands floats (a.b) for the imaginary part
+fails:String#to_c understands negative floats (-a.b) for the real part
+fails:String#to_c understands negative floats (-a.b) for the imaginary part
+fails:String#to_c understands an integer followed by 'i' to mean that integer is the imaginary part
+fails:String#to_c understands a negative integer followed by 'i' to mean that negative integer is the imaginary part
+fails:String#to_c understands an 'i' by itself as denoting a complex number with an imaginary part of 1
+fails:String#to_c understands a '-i' by itself as denoting a complex number with an imaginary part of -1
+fails:String#to_c understands 'a+bi' to mean a complex number with 'a' as the real part, 'b' as the imaginary
+fails:String#to_c understands 'a-bi' to mean a complex number with 'a' as the real part, '-b' as the imaginary
+fails:String#to_c understands scientific notation for the real part
+fails:String#to_c understands negative scientific notation for the real part
+fails:String#to_c understands scientific notation for the imaginary part
+fails:String#to_c understands negative scientific notation for the imaginary part
+fails:String#to_c understands scientific notation for the real and imaginary part in the same String
+fails:String#to_c understands negative scientific notation for the real and imaginary part in the same String
+fails:String#to_c returns a complex number with 0 as the real part, 0 as the imaginary part for unrecognised Strings

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_r_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_r_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/to_r_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,12 @@
+fails:String#to_r returns a Rational object
+fails:String#to_r returns (0/1) for the empty String
+fails:String#to_r returns (n/1) for a String starting with a decimal _n_
+fails:String#to_r ignores trailing characters
+fails:String#to_r ignores leading spaces
+fails:String#to_r does not ignore arbitrary, non-numeric leading characters
+fails:String#to_r treats leading hypens as minus signs
+fails:String#to_r does not treat a leading period without a numeric prefix as a decimal point
+fails:String#to_r understands decimal points
+fails:String#to_r ignores underscores between numbers
+fails:String#to_r understands a forward slash as separating the numerator from the denominator
+fails:String#to_r returns (0/1) for Strings it can't parse

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/upto_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/upto_tags.txt	2009-07-01 23:47:24 UTC (rev 1962)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/upto_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -1,2 +1,3 @@
 fails:String#upto works with symbols to
 fails:String#upto returns an enumerator when no block given
+fails:String#upto works with symbols

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt	2009-07-01 23:48:25 UTC (rev 1963)
@@ -0,0 +1,6 @@
+fails:String#valid_encoding? returns true if the String's encoding is valid
+fails:String#valid_encoding? returns true if self is valid in the current encoding and other encodings
+fails:String#valid_encoding? returns true for all encodings self is valid in
+fails:String#valid_encoding? returns false if self is valid in one encoding, but invalid in the one it's tagged with
+fails:String#valid_encoding? returns false if self contains a character invalid in the associated encoding
+fails:String#valid_encoding? returns false if a valid String had an invalid character appended to it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090701/76d06678/attachment-0001.html>


More information about the macruby-changes mailing list