mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0e3475a6d9
commit
74b314e41f
2 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* complex.c: Don't refer rb_cFixnum and rb_cBignum.
|
||||
|
|
|
@ -446,13 +446,13 @@ class TestRefinement < Test::Unit::TestCase
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue