1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-
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/resize handle ext/ as r53141 2015-12-16 05:31:54 +00:00
bignum handle ext/ as r53141 2015-12-16 05:31:54 +00:00
bug-3571 ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
bug-5832 ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
bug_reporter ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
class handle ext/ as r53141 2015-12-16 05:31:54 +00:00
debug handle ext/ as r53141 2015-12-16 05:31:54 +00:00
dln/empty handle ext/ as r53141 2015-12-16 05:31:54 +00:00
exception handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fatal handle ext/ as r53141 2015-12-16 05:31:54 +00:00
file handle ext/ as r53141 2015-12-16 05:31:54 +00:00
float handle ext/ as r53141 2015-12-16 05:31:54 +00:00
funcall ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
gvl/call_without_gvl handle ext/ as r53141 2015-12-16 05:31:54 +00:00
hash handle ext/ as r53141 2015-12-16 05:31:54 +00:00
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 handle ext/ as r53141 2015-12-16 05:31:54 +00:00
load/dot.dot ext/-test-: reduce feature names 2016-01-10 09:43:47 +00:00
marshal handle ext/ as r53141 2015-12-16 05:31:54 +00:00
method handle ext/ as r53141 2015-12-16 05:31:54 +00:00
notimplement handle ext/ as r53141 2015-12-16 05:31:54 +00:00
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 handle ext/ as r53141 2015-12-16 05:31:54 +00:00
postponed_job handle ext/ as r53141 2015-12-16 05:31:54 +00:00
printf handle ext/ as r53141 2015-12-16 05:31:54 +00:00
proc handle ext/ as r53141 2015-12-16 05:31:54 +00:00
rational handle ext/ as r53141 2015-12-16 05:31:54 +00:00
recursion handle ext/ as r53141 2015-12-16 05:31:54 +00:00
st handle ext/ as r53141 2015-12-16 05:31:54 +00:00
string * string.c (str_new_frozen): if the given string is embeddedable 2016-02-03 04:52:13 +00:00
struct handle ext/ as r53141 2015-12-16 05:31:54 +00:00
symbol handle ext/ as r53141 2015-12-16 05:31:54 +00:00
time handle ext/ as r53141 2015-12-16 05:31:54 +00:00
tracepoint handle ext/ as r53141 2015-12-16 05:31:54 +00:00
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 handle ext/ as r53141 2015-12-16 05:31:54 +00:00