groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thibault Kruse <tibokr...@googlemail.com>
Subject Re: usage of NumberAwareComparator in extension methods and number oddities (a bit code review)
Date Tue, 08 Sep 2015 13:19:20 GMT
> // 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.

Mime
View raw message