ruby-changes:27994
From: akr <ko1@a...>
Date: Tue, 2 Apr 2013 07:45:48 +0900 (JST)
Subject: [ruby-changes:27994] akr:r40046 (trunk): conditional test fixed.
akr 2013-04-02 07:45:29 +0900 (Tue, 02 Apr 2013) New Revision: 40046 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40046 Log: conditional test fixed. Modified files: trunk/test/-ext-/num2int/test_num2int.rb Index: test/-ext-/num2int/test_num2int.rb =================================================================== --- test/-ext-/num2int/test_num2int.rb (revision 40045) +++ test/-ext-/num2int/test_num2int.rb (revision 40046) @@ -188,7 +188,7 @@ class TestNum2int < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L188 assert_num2i_success(:ll, FIXNUM_MIN-1) assert_num2i_success(:ll, FIXNUM_MAX) assert_num2i_success(:ll, FIXNUM_MAX+1) - end if defined?(Num2int.rb_num2ll) + end if defined?(Kernel.NUM2LL) def test_num2ull assert_num2i_success(:ull, 0) @@ -201,7 +201,7 @@ class TestNum2int < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/-ext-/num2int/test_num2int.rb#L201 assert_num2i_success(:ull, FIXNUM_MIN-1, ULLONG_MAX-FIXNUM_MAX-1) assert_num2i_success(:ull, FIXNUM_MAX) assert_num2i_success(:ull, FIXNUM_MAX+1) - end if defined?(Num2int.rb_num2ull) + end if defined?(Kernel.NUM2ULL) def test_fix2short assert_fix2i_success(:short, 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/