* compar.c (cmp_eq_recursive): Fix the return value, the value for
failed #<=> should be nil. It was raising a NoMethodError for the test case TestComparable#test_no_cmp (undefined method `>' for false:FalseClass). Yet one more reason for #7688. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58a60b264d
commit
7e978b1070
@ -1,3 +1,10 @@
|
||||
Sun Dec 29 07:27:51 2013 Benoit Daloze <eregontp@gmail.com>
|
||||
|
||||
* compar.c (cmp_eq_recursive): Fix the return value, the value for
|
||||
failed #<=> should be nil. It was raising a NoMethodError for
|
||||
the test case TestComparable#test_no_cmp (undefined method `>'
|
||||
for false:FalseClass). Yet one more reason for #7688.
|
||||
|
||||
Sat Dec 28 22:21:59 2013 Benoit Daloze <eregontp@gmail.com>
|
||||
|
||||
* object.c (Kernel#<=>) surround Comparable operators with <code> tags.
|
||||
|
Loading…
x
Reference in New Issue
Block a user