Skip to content

Commit

Permalink
Hash#element reference call eql? on objects in right order
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya committed Apr 16, 2013
1 parent d7faeff commit 6406945
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion spec/tags/core/hash/element_reference_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/core/hash/has_key_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/core/hash/include_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/core/hash/key_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/core/hash/member_tags.txt

This file was deleted.

2 changes: 1 addition & 1 deletion topaz/objspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def hash_w(self, w_obj):
return self.int_w(self.send(w_obj, self.newsymbol("hash")))

def eq_w(self, w_obj1, w_obj2):
return self.is_true(self.send(w_obj1, self.newsymbol("eql?"), [w_obj2]))
return self.is_true(self.send(w_obj2, self.newsymbol("eql?"), [w_obj1]))

def register_exit_handler(self, w_proc):
self.exit_handlers_w.append(w_proc)
Expand Down

0 comments on commit 6406945

Please sign in to comment.