1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-
mrkn b60a7b43fe * numeric.c (int_to_f, fix_to_f): rename fix_to_f to int_to_f, and add
treatment for subclasses which don't have definitions of to_f method.

* numeric.c (Integer#to_f, Fixnum#to_f): move to_f method from Fixnum
  to Integer.

* ext/-test-/integer/my_integer.rb: define helper class for testing
  to_f method for a subclass of Integer.

* ext/-test-/integer/extconf.rb: ditto.

* ext/-test-/integer/init.c: ditto.

* test/-ext-/integer/test_my_integer.rb: examine to_f method for a
  subclass of Integer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-18 14:52:46 +00:00
..
array
bignum
bug_reporter ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
class
debug
exception
file
float * test/-ext-/float/test_nextafter.rb: In AIX, 2016-03-04 22:43:31 +00:00
funcall ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
gvl
hash
integer * numeric.c (int_to_f, fix_to_f): rename fix_to_f to int_to_f, and add 2016-03-18 14:52:46 +00:00
iseq_load ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
iter
load ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
marshal
method
num2int ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
path_to_class ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
popen_deadlock
postponed_job
proc
rational
st
string * string.c (rb_str_init): introduce String.new(capacity: size) 2016-02-17 03:21:35 +00:00
struct
symbol object.c: fix error message 2016-02-19 16:54:08 +00:00
time * test/-ext-/time/test_new.rb (test_timespec_new): Time#gmtoff values 2016-03-16 23:20:14 +00:00
tracepoint
typeddata ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
wait_for_single_fd ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
win32
test_bug-3571.rb ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
test_bug-5832.rb ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
test_notimplement.rb
test_printf.rb
test_recursion.rb