You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by Thibault Kruse <ti...@googlemail.com> on 2015/10/19 16:30:13 UTC

Re: usage of NumberAwareComparator in extension methods and number oddities (a bit code review)

I opened JIRA issues:
https://issues.apache.org/jira/browse/GROOVY-7636
https://issues.apache.org/jira/browse/GROOVY-76367

and created PR:
https://github.com/apache/incubator-groovy/pull/150

On Tue, Sep 8, 2015 at 3:19 PM, Thibault Kruse <ti...@googlemail.com> wrote:
>> // bug, returns 47?
>> // assert compareTo('aa1', '2' as Character) == 1
>
> those ones are fine actually, compareTo in Comparable only requires
> integers, not -1, 0, 1, and I'll assume that as long as the sign is
> valid, it's not a bug.