e$B$U$J$P$5$se(B
e$B1sF#$G$9!#e(B
Rational#rationalize e$B$r;O$a!"B?$/$Ne(B #rationalize
e$B%a%=%C%I$,:o=|e(B
e$B$5$l$?$h$&$G$9$,!“2?$+M}M3$,$”$C$F$N$3$H$G$7$g$&$+!#e(B
e$B$9$G$Ke(B feature freeze
e$B:Q$$G$"$k$?$a!":#8e8_49@-$r0];}$9$k$N$Ke(B
e$B=EBg$JLdBj$,$"$k$J$I!“K\Ev$K$d$`$rF@$J$$M}M3$,$”$k$N$G$J$$8B$j$Oe(B
e$B:o=|$7$F$O$$$1$^$;$s!#e(B
experimental e$B$G$"$C$F$b!"e(Btrunk e$B$K%3%%C%H$7$?>uBV$Ge(B feature
freeze
e$B$7$F$7$^$C$?0J>e!"<jCY$l$G$"$k$H9M$($^$9!#e(B
e$B9M$($,$"$C$F$N$3$H$G$7$?$i!"$^$:$OM}M3$r$*J9$+$;$/$@$5$$!#e(B
e$B$A$J$_$K!"e(Brubyspec e$B$,BgNL$K%(%i!<$r=P$9$h$&$K$J$C$F$$$^$9!#e(B
Complex#rationalize raises RangeError if self has non-zero imaginary
part FAILED
Expected RangeError
but got NoMethodError (undefined method rationalize' for (1+5i):Complex) /home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:6:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:3:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:1:in
<top (required)>’
Complex#rationalize returns a Rational if self has zero imaginary part
ERROR
NoMethodError: undefined method rationalize' for (1+0i):Complex /home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:10:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:3:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/complex/rationalize_spec.rb:1:in
<top (required)>’
…
Float#rationalize returns self as a simplified Rational with no argument
ERROR
NoMethodError: undefined method rationalize' for 3382729202.92822:Float /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:6:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:3:in
<top (required)>’
Float#rationalize simplifies self to the degree specified by a
Rational argument ERROR
NoMethodError: undefined method rationalize' for 0.3:Float /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:13:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:3:in
<top (required)>’
Float#rationalize simplifies self to the degree specified by a Float
argument ERROR
NoMethodError: undefined method rationalize' for 0.3:Float /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:24:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:3:in
<top (required)>’
Float#rationalize raises a FloatDomainError for Infinity FAILED
Expected FloatDomainError
but got NoMethodError (undefined method rationalize' for Infinity:Float) /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:33:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:3:in
<top (required)>’
Float#rationalize raises a FloatDomainError for NaN FAILED
Expected FloatDomainError
but got NoMethodError (undefined method rationalize' for NaN:Float) /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:37:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/float/rationalize_spec.rb:3:in
<top (required)>’
…
NilClass#rationalize returns 0/1 ERROR
NoMethodError: undefined method rationalize' for nil:NilClass /home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:6:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:3:in
<top (required)>’
NilClass#rationalize ignores arguments ERROR
NoMethodError: undefined method rationalize' for nil:NilClass /home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:10:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/nil/rationalize_spec.rb:3:in
<top (required)>’
Numeric#rationalize returns a Rational object ERROR
NoMethodError: undefined method rationalize' for 0:Fixnum /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:16:in
block (4 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:15:in
each' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:15:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:3:in
<top (required)>’
Numeric#rationalize uses self as the numerator ERROR
NoMethodError: undefined method rationalize' for 0:Fixnum /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:22:in
block (4 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:21:in
each' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:21:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:3:in
<top (required)>’
Numeric#rationalize uses 1 as the denominator ERROR
NoMethodError: undefined method rationalize' for 0:Fixnum /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:28:in
block (4 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:27:in
each' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:27:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/numeric/rationalize_spec.rb:3:in
<top (required)>’
…
Rational#rationalize returns self with no argument ERROR
NoMethodError: undefined method rationalize' for (4/1):Rational /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:6:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:1:in
<top (required)>’
Rational#rationalize simplifies self to the degree specified by a
Rational argument ERROR
NoMethodError: undefined method rationalize' for (5404319552844595/18014398509481984):Rational /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:14:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:1:in
<top (required)>’
Rational#rationalize simplifies self to the degree specified by a
Float argument ERROR
NoMethodError: undefined method rationalize' for (5404319552844595/18014398509481984):Rational /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:25:in
block (3 levels) in <top (required)>’
/home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:4:in
block in <top (required)>' /home/mame/work/ruby/spec/rubyspec/core/rational/rationalize_spec.rb:1:in
<top (required)>’