зеркало из https://github.com/github/ruby.git
use assert_same instead of assert_equal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f208b3ad51
Коммит
026cc75b9a
|
@ -8,7 +8,7 @@ class TestObjectSpace < Test::Unit::TestCase
|
|||
code = <<"End"
|
||||
define_method("test_id2ref_#{line}") {\
|
||||
o = ObjectSpace._id2ref(obj.object_id);\
|
||||
assert_equal(obj, o, "didn't round trip: \#{obj.inspect}");\
|
||||
assert_same(obj, o, "didn't round trip: \#{obj.inspect}");\
|
||||
}
|
||||
End
|
||||
eval code, binding, file, line
|
||||
|
|
Загрузка…
Ссылка в новой задаче