summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-02 01:26:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-02 01:26:58 +0000
commit0a0160d6b659f6131a525fe1579e7c463d4c197e (patch)
tree75a47d4daf59eb71d11e4209a2fdd1cc718a1870 /test/ruby
parenta13944dc1cce2106e5267046c788e680a8cdefa4 (diff)
object.c: Object#itsef
* object.c (rb_obj_itself): new method Object#itsef. based on the patch by Rafael Fran├ža in [ruby-core:64156]. [EXPERIMENTAL] this method may be renamed due to compatibilities. [ruby-core:44704] [Feature #6373] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_object.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index f305cc7..4573dc8 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -12,6 +12,12 @@ class TestObject < Test::Unit::TestCase
$VERBOSE = @verbose
end
+ def test_itself
+ feature6373 = '[ruby-core:44704] [Feature #6373]'
+ object = Object.new
+ assert_same(object, object.itself, feature6373)
+ end
+
def test_dup
assert_raise(TypeError) { 1.dup }
assert_raise(TypeError) { true.dup }