mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
parent
a505cd32fb
commit
f1dda5ed01
Notes:
git
2024-11-30 04:41:19 +00:00
5 changed files with 11 additions and 8 deletions
|
@ -11,8 +11,10 @@ describe "BasicObject#equal?" do
|
|||
it "is unaffected by overriding __id__" do
|
||||
o1 = mock("object")
|
||||
o2 = mock("object")
|
||||
def o1.__id__; 10; end
|
||||
def o2.__id__; 10; end
|
||||
suppress_warning {
|
||||
def o1.__id__; 10; end
|
||||
def o2.__id__; 10; end
|
||||
}
|
||||
o1.equal?(o2).should be_false
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue