[前][次][番号順一覧][スレッド一覧]

ruby-changes:42806

From: akr <ko1@a...>
Date: Mon, 2 May 2016 11:39:24 +0900 (JST)
Subject: [ruby-changes:42806] akr:r54880 (trunk): * test/ruby/test_refinement.rb (test_inspect): Use Integer instead of Fixnum.

akr	2016-05-02 12:35:52 +0900 (Mon, 02 May 2016)

  New Revision: 54880

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54880

  Log:
    * test/ruby/test_refinement.rb (test_inspect): Use Integer instead of Fixnum.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_refinement.rb
Index: test/ruby/test_refinement.rb
===================================================================
--- test/ruby/test_refinement.rb	(revision 54879)
+++ test/ruby/test_refinement.rb	(revision 54880)
@@ -446,13 +446,13 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L446
 
   module Inspect
     module M
-      Fixnum = refine(Fixnum) {}
+      Integer = refine(Integer) {}
     end
   end
 
   def test_inspect
-    assert_equal("#<refinement:Fixnum@TestRefinement::Inspect::M>",
-                 Inspect::M::Fixnum.inspect)
+    assert_equal("#<refinement:Integer@TestRefinement::Inspect::M>",
+                 Inspect::M::Integer.inspect)
   end
 
   def test_using_method_cache
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54879)
+++ ChangeLog	(revision 54880)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon May  2 12:34:52 2016  Tanaka Akira  <akr@f...>
+
+	* test/ruby/test_refinement.rb (test_inspect): Use Integer instead of
+	  Fixnum.
+
 Mon May  2 06:58:38 2016  Tanaka Akira  <akr@f...>
 
 	* complex.c: Don't refer rb_cFixnum and rb_cBignum.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]