[macruby-changes] [1880] MacRuby/branches/experimental/spec
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 18 13:41:01 PDT 2009
Revision: 1880
http://trac.macosforge.org/projects/ruby/changeset/1880
Author: eloy.de.enige at gmail.com
Date: 2009-06-18 13:41:00 -0700 (Thu, 18 Jun 2009)
Log Message:
-----------
Tagged failing examples and excluded Numeric#to_c spec as it uses Kernel::Rational in the before filter which we don't have yet on MacRuby.
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/numeric/to_c_spec.rb
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/join_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/require_tags.txt
MacRuby/branches/experimental/spec/macruby.mspec
Added Paths:
-----------
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rect_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rectangular_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/denominator_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/fdiv_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcd_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcdlcm_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/lcm_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/to_r_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/angle_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/arg_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conj_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conjugate_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imag_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imaginary_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/magnitude_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/phase_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/polar_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/real_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rect_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rectangular_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/Rational_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/abs_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/ceil_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/coerce_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/comparison_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/denominator_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divide_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/equal_value_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/hash_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/inspect_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/minus_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/modulo_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/multiply_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/numerator_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/plus_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/quo_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_f_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_i_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_r_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_s_tags.txt
Modified: MacRuby/branches/experimental/spec/frozen/core/numeric/to_c_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/numeric/to_c_spec.rb 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/core/numeric/to_c_spec.rb 2009-06-18 20:41:00 UTC (rev 1880)
@@ -11,37 +11,37 @@
Rational(2,3),
Rational(1.898),
Rational(-238),
- 29282.2827,
- -2927.00091,
- 0.0,
+ 29282.2827,
+ -2927.00091,
+ 0.0,
12.0,
- Float::MAX,
+ Float::MAX,
1/0.0,
0/0.0
]
end
it "returns a Complex object" do
- @numbers.each do |number|
+ @numbers.each do |number|
number.to_c.should be_an_instance_of(Complex)
- end
- end
+ end
+ end
it "uses self as the real component" do
@numbers.each do |number|
real = number.to_c.real
if number.to_f.nan?
real.nan?.should be_true
- else
+ else
real.should == number
- end
- end
- end
+ end
+ end
+ end
it "uses 0 as the imaginary component" do
@numbers.each do |number|
number.to_c.imag.should == 0
end
- end
+ end
end
end
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -1 +1,2 @@
fails:ARGF.close closes the current open stream
+fails:ARGF.close raises an IOError if called on a closed stream
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -1 +1,2 @@
fails:ARGF.each_line reads each line of files
+fails:ARGF.each_line returns self when passed a block
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -1 +1,2 @@
fails:ARGF.each reads each line of files
+fails:ARGF.each returns self when passed a block
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-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/bignum/comparison_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -1 +1,5 @@
fails:Bignum#<=> returns nil when the given argument is not an Integer
+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 Infinity and other is a Bignum
+fails:Bignum#<=> returns 1 when self is negative and other is Infinty
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rect_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rect_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rect_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Complex#rect returns an Array
+fails:Complex#rect returns a two-element Array
+fails:Complex#rect returns the real part of self as the first element
+fails:Complex#rect returns the imaginary part of self as the last element
+fails:Complex#rect raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rectangular_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rectangular_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/complex/rectangular_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Complex#rectangular returns an Array
+fails:Complex#rectangular returns a two-element Array
+fails:Complex#rectangular returns the real part of self as the first element
+fails:Complex#rectangular returns the imaginary part of self as the last element
+fails:Complex#rectangular raises an ArgumentError if given any arguments
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/join_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/join_tags.txt 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/join_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -1,2 +1,3 @@
critical:File.join raises an ArgumentError if passed a recursive array
fails:File.join calls #to_str
+fails:File.join calls #to_path
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/comparison_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,4 @@
+fails:Float#<=> returns 1 when self is Infinity and other is a Bignum
+fails:Float#<=> returns 1 when self is negative and other is Infinty
+fails:Float#<=> returns 1 when self is Infinity and other is a Bignum
+fails:Float#<=> returns 1 when self is negative and other is Infinty
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/denominator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/denominator_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/denominator_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,3 @@
+fails:Float#denominator returns an Integer
+fails:Float#denominator converts self to a Rational and returns the denominator
+fails:Float#denominator returns 1 for NaN and Infinity
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/fdiv_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/fdiv_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/fdiv_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,4 @@
+fails:Float#fdiv performs floating-point division between self and a Fixnum
+fails:Float#fdiv performs floating-point division between self and a Rational
+fails:Float#fdiv performs floating-point division between self and a Complex
+fails:Float#fdiv raises a TypeError when argument isn't numeric
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/float/numerator_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Numeric#numerator converts self to a Rational object then returns its numerator
+fails:Numeric#numerator returns 0 for 0.0
+fails:Numeric#numerator returns NaN for NaN
+fails:Numeric#numerator returns Infinity for Infinity
+fails:Numeric#numerator returns -Infinity for Infinity
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcd_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcd_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcd_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,11 @@
+fails:Integer#gcd returns self if equal to the argument
+fails:Integer#gcd returns an Integer
+fails:Integer#gcd returns the greatest common divisor of self and argument
+fails:Integer#gcd returns a positive integer even if self is negative
+fails:Integer#gcd returns a positive integer even if the argument is negative
+fails:Integer#gcd returns a positive integer even if both self and argument are negative
+fails:Integer#gcd accepts a Bignum argument
+fails:Integer#gcd works if self is a Bignum
+fails:Integer#gcd raises an ArgumentError if not given an argument
+fails:Integer#gcd raises an ArgumentError if given more than one argument
+fails:Integer#gcd raises an ArgumentError unless the argument is an Integer
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcdlcm_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcdlcm_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/gcdlcm_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,10 @@
+fails:Integer#gcdlcm returns [self, self] if self is equal to the argument
+fails:Integer#gcdlcm returns an Array
+fails:Integer#gcdlcm returns a two-element Array
+fails:Integer#gcdlcm returns the greatest common divisor of self and argument as the first element
+fails:Integer#gcdlcm returns the least common multiple of self and argument as the last element
+fails:Integer#gcdlcm accepts a Bignum argument
+fails:Integer#gcdlcm works if self is a Bignum
+fails:Integer#gcdlcm raises an ArgumentError if not given an argument
+fails:Integer#gcdlcm raises an ArgumentError if given more than one argument
+fails:Integer#gcdlcm raises an ArgumentError unless the argument is an Integer
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/lcm_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/lcm_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/lcm_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,11 @@
+fails:Integer#lcm returns self if equal to the argument
+fails:Integer#lcm returns an Integer
+fails:Integer#lcm returns the least common multiple of self and argument
+fails:Integer#lcm returns a positive integer even if self is negative
+fails:Integer#lcm returns a positive integer even if the argument is negative
+fails:Integer#lcm returns a positive integer even if both self and argument are negative
+fails:Integer#lcm accepts a Bignum argument
+fails:Integer#lcm works if self is a Bignum
+fails:Integer#lcm raises an ArgumentError if not given an argument
+fails:Integer#lcm raises an ArgumentError if given more than one argument
+fails:Integer#lcm raises an ArgumentError unless the argument is an Integer
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/to_r_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/to_r_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/integer/to_r_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Integer#to_r returns a Rational object
+fails:Integer#to_r constructs a rational number with self as the numerator
+fails:Integer#to_r constructs a rational number with 1 as the denominator
+fails:Integer#to_r works even if self is a Bignum
+fails:Integer#to_r raises an ArgumentError if given any arguments
Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/require_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/require_tags.txt 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/require_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -15,4 +15,11 @@
fails:Kernel#require collapses consecutive path separators
fails:Kernel#require collapses '../' inside an absolute path
fails:Kernel#require canonicalizes relative paths
-fails:Kernel#require calls #to_path on non-String arguments
\ No newline at end of file
+fails:Kernel#require calls #to_path on non-String arguments
+fails:Kernel#require stores relative paths as absolute paths in $LOADED_FEATURES
+fails:Kernel#require stores ./file paths as absolute paths in $LOADED_FEATURES
+fails:Kernel#require performs tilde expansion before storing paths in $LOADED_FEATURES
+fails:Kernel#require collapses '../' inside an absolute path before storing in $LOADED_FEATURES
+fails:Kernel#require uses $LOADED_FEATURES to see whether file is already loaded
+fails:Kernel#require will not load a file whose path appears in $LOADED_FEATURES; it will return false
+fails:Kernel#require raises a LoadError if the file exists but can't be read
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/angle_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/angle_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/angle_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,3 @@
+fails:Numeric#angle returns 0 if positive
+fails:Numeric#angle returns Pi if negative
+fails:Numeric#angle raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/arg_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/arg_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/arg_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,3 @@
+fails:Numeric#arg returns 0 if positive
+fails:Numeric#arg returns Pi if negative
+fails:Numeric#arg raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conj_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conj_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conj_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#conj returns self
+fails:Numeric#conj raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conjugate_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conjugate_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/conjugate_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#conjugate returns self
+fails:Numeric#conjugate raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imag_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imag_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imag_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#imag returns 0
+fails:Numeric#imag raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imaginary_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imaginary_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/imaginary_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#imaginary returns 0
+fails:Numeric#imaginary raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/magnitude_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/magnitude_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/magnitude_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#magnitude returns self when self is greater than 0
+fails:Numeric#magnitude returns self#@- when self is less than 0
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/numerator_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Numeric#numerator converts self to a Rational object then returns its numerator
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/phase_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/phase_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/phase_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,3 @@
+fails:Numeric#phase returns 0 if positive
+fails:Numeric#phase returns Pi if negative
+fails:Numeric#phase raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/polar_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/polar_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/polar_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Numeric#polar returns a two-element Array
+fails:Numeric#polar sets the first value to the absolute value of self
+fails:Numeric#polar sets the last value to 0 if self is positive
+fails:Numeric#polar sets the last value to Pi if self is negative
+fails:Numeric#polar treats NaN like a positive number
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/real_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/real_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/real_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Numeric#real returns self
+fails:Numeric#real raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rect_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rect_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rect_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Numeric#rect returns an Array
+fails:Numeric#rect returns a two-element Array
+fails:Numeric#rect returns self as the first element
+fails:Numeric#rect returns 0 as the last element
+fails:Numeric#rect raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rectangular_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rectangular_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/numeric/rectangular_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Numeric#rectangular returns an Array
+fails:Numeric#rectangular returns a two-element Array
+fails:Numeric#rectangular returns self as the first element
+fails:Numeric#rectangular returns 0 as the last element
+fails:Numeric#rectangular raises an ArgumentError if given any arguments
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/Rational_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/Rational_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/Rational_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Rational() passed two arguments returns a Rational instance
+fails:Rational() passed two arguments sets the numerator to the first argument
+fails:Rational() passed two arguments sets the denominator to the second argument
+fails:Rational() passed two arguments automatically reduces the Rational
+fails:Rational() passed Integer returns a new Rational number with 1 as the denominator
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/abs_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/abs_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/abs_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#abs returns self's absolute value
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/ceil_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/ceil_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/ceil_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Rational#ceil returns an Integer
+fails:Rational#ceil returns the smallest integer >= self as an integer
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/coerce_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/coerce_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/coerce_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,3 @@
+fails:Rational#coerce returns the passed argument, self as Float, when given a Float
+fails:Rational#coerce returns the passed argument, self as Rational, when given an Integer
+fails:Rational#coerce returns [argument, self] when given a Rational
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/comparison_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/comparison_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/comparison_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,11 @@
+fails:Rational#<=> when passed a Rational object returns 1 when self is greater than the passed argument
+fails:Rational#<=> when passed a Rational object returns 0 when self is equal to the passed argument
+fails:Rational#<=> when passed a Rational object returns -1 when self is less than the passed argument
+fails:Rational#<=> when passed a Integer object returns 1 when self is greater than the passed argument
+fails:Rational#<=> when passed a Integer object returns 0 when self is equal to the passed argument
+fails:Rational#<=> when passed a Integer object returns -1 when self is less than the passed argument
+fails:Rational#<=> when passed a Float object returns 1 when self is greater than the passed argument
+fails:Rational#<=> when passed a Float object returns 0 when self is equal to the passed argument
+fails:Rational#<=> when passed a Float object returns -1 when self is less than the passed argument
+fails:Rational#<=> when passed an Object that responds to #coerce calls #coerce on the passed argument with self
+fails:Rational#<=> when passed an Object that responds to #coerce calls #<=> on the coerced Rational with the coerced Object
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/denominator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/denominator_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/denominator_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Rational#denominator returns the denominator
+fails:Rational#denominator returns 1 if no denominator was given
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/div_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,10 @@
+fails:Rational#div returns an Integer
+fails:Rational#div raises an ArgumentError if passed more than one argument
+fails:Rational#div raises a TypeError if passed a non-numeric argument
+fails:Rational#div passed a Rational performs integer division and returns the result
+fails:Rational#div passed a Rational raises a ZeroDivisionError when the argument has a numerator of 0
+fails:Rational#div passed a Rational raises a ZeroDivisionError when the argument has a numerator of 0.0
+fails:Rational#div passed an Integer performs integer division and returns the result
+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
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divide_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divide_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divide_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,8 @@
+fails:Rational#/ calls #coerce on the passed argument with self
+fails:Rational#/ calls #/ on the coerced Rational with the coerced Object
+fails:Rational#/ when passed an Integer returns self divided by other as a Rational
+fails:Rational#/ when passed an Integer raises a ZeroDivisionError when passed 0
+fails:Rational#/ when passed a Rational returns self divided by other as a Rational
+fails:Rational#/ when passed a Rational raises a ZeroDivisionError when passed a Rational with a numerator of 0
+fails:Rational#/ when passed a Float returns self divided by other as a Float
+fails:Rational#/ when passed a Float returns infinity when passed 0
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/divmod_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,7 @@
+fails:Rational#divmod when passed a Rational returns the quotient as Integer and the remainder as Rational
+fails:Rational#divmod when passed a Rational raises a ZeroDivisonError when passed a Rational with a numerator of 0
+fails:Rational#divmod when passed an Integer returns the quotient as Integer and the remainder as Rational
+fails:Rational#divmod when passed an Integer raises a ZeroDivisionError when passed 0
+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
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/equal_value_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/equal_value_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/equal_value_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,4 @@
+fails:Rational#== returns the result of calling #== with self on the passed argument
+fails:Rational#== when passed a Rational returns true if self has the same numerator and denominator as the passed argument
+fails:Rational#== when passed a Float converts self to a Float and compares it with the passed argument
+fails:Rational#== when passed an Integer returns true if self has the passed argument as numerator and a denominator of 1
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/exponent_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,10 @@
+fails:Rational#** calls #coerce on the passed argument with self
+fails:Rational#** calls #** on the coerced Rational with the coerced Object
+fails:Rational#** when passed Rational returns self raised to the argument as a Rational if possible
+fails:Rational#** when passed Rational returns self raised to the argument as a Float if necessary
+fails:Rational#** when passed Rational returns NaN when self is negative and the passed argument is not 0
+fails:Rational#** when passed Float returns self converted to Float and raised to the passed argument
+fails:Rational#** when passed Float returns 1.0 when the passed argument is 0
+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
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/hash_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/hash_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/hash_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#hash is static
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/inspect_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/inspect_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/inspect_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#inspect returns a string representation of self
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/minus_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/minus_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/minus_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Rational#- calls #coerce on the passed argument with self
+fails:Rational#- calls #- on the coerced Rational with the coerced Object
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/modulo_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/modulo_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/modulo_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,4 @@
+fails:Rational#% returns the remainder when this value is divided by other
+fails:Rational#% returns a Float value when the argument is Float
+fails:Rational#% raises ZeroDivisionError on zero denominator
+fails:Rational#% raises FloatDomainError when the argument is 0.0
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/multiply_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/multiply_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/multiply_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Rational#* calls #coerce on the passed argument with self
+fails:Rational#* calls #* on the coerced Rational with the coerced Object
+fails:Rational#* passed a Rational returns self divided by other as a Rational
+fails:Rational#* passed a Float returns self divided by other as a Float
+fails:Rational#* passed an Integer returns self divided by other as a Rational
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/numerator_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/numerator_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/numerator_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#numerator returns the numerator
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/plus_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/plus_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/plus_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,5 @@
+fails:Rational#+ calls #coerce on the passed argument with self
+fails:Rational#+ calls #+ on the coerced Rational with the coerced Object
+fails:Rational#+ with a Rational returns the result of substracting other from self as a Rational
+fails:Rational#+ with a Float returns the result of substracting other from self as a Float
+fails:Rational#+ with an Integer returns the result of substracting other from self as a Rational
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/quo_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/quo_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/quo_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Rational#quo calls #coerce on the passed argument with self
+fails:Rational#quo calls #/ on the coerced Rational with the coerced Object
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_f_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_f_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_f_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#to_f returns self converted to a Float
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_i_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_i_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_i_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1,2 @@
+fails:Rational#to_i converts self to an Integer by truncation
+fails:Rational#to_i converts self to an Integer by truncation
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_r_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_r_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_r_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#to_r returns self
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_s_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_s_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/rational/to_s_tags.txt 2009-06-18 20:41:00 UTC (rev 1880)
@@ -0,0 +1 @@
+fails:Rational#to_s returns a string representation of self
Modified: MacRuby/branches/experimental/spec/macruby.mspec
===================================================================
--- MacRuby/branches/experimental/spec/macruby.mspec 2009-06-18 20:38:24 UTC (rev 1879)
+++ MacRuby/branches/experimental/spec/macruby.mspec 2009-06-18 20:41:00 UTC (rev 1880)
@@ -15,6 +15,7 @@
# Currently not working on MacRuby
'^core/marshal',
+ '^core/numeric/to_c_spec.rb',
'^core/precision',
'^core/proc',
'^core/process',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090618/07019887/attachment-0001.html>
More information about the macruby-changes
mailing list