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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2016-05-02 03:35:52 +00:00
parent 0e3475a6d9
commit 74b314e41f
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Mon May 2 12:34:52 2016 Tanaka Akira <akr@fsij.org>
* test/ruby/test_refinement.rb (test_inspect): Use Integer instead of
Fixnum.
Mon May 2 06:58:38 2016 Tanaka Akira <akr@fsij.org> Mon May 2 06:58:38 2016 Tanaka Akira <akr@fsij.org>
* complex.c: Don't refer rb_cFixnum and rb_cBignum. * complex.c: Don't refer rb_cFixnum and rb_cBignum.

View file

@ -446,13 +446,13 @@ class TestRefinement < Test::Unit::TestCase
module Inspect module Inspect
module M module M
Fixnum = refine(Fixnum) {} Integer = refine(Integer) {}
end end
end end
def test_inspect def test_inspect
assert_equal("#<refinement:Fixnum@TestRefinement::Inspect::M>", assert_equal("#<refinement:Integer@TestRefinement::Inspect::M>",
Inspect::M::Fixnum.inspect) Inspect::M::Integer.inspect)
end end
def test_using_method_cache def test_using_method_cache