groovy_koans
groovy_koans copied to clipboard
Overloading == operator
The OperatorOverloadingKoans.testEqualsOperator
test has a mistake. Defining a .equals
method does not affect the behavior or the ==
operator. Relational operators are overloaded using the .compareTo
method. See http://groovy-lang.org/operators.html#Operator-Overloading