[
https://issues.apache.org/jira/browse/GROOVY-7699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-7699.
-----------------------------
> collate() on empty list shall return empty list
> -----------------------------------------------
>
> Key: GROOVY-7699
> URL: https://issues.apache.org/jira/browse/GROOVY-7699
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Affects Versions: 2.4.4, 2.4.5
> Environment: Darwin Michas-MacBook-Pro.local 15.0.0 Darwin Kernel
> Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015;
> root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
> Groovy Version: 2.4.5 JVM: 1.8.0_60 Vendor: Oracle Corporation OS: Mac OS X
> Reporter: MichaĆ Mally
> Assignee: Paul King
> Priority: Minor
> Fix For: 2.4.8
>
>
> collate() on empty list shall return empty list instead of list containing
> one element (empty list).
> Expected:
> {code:java}[].collate(n) == []{code}
> Actual:
> {code:java}[].collate(n) == [[]]{code}
> where *n* is *int* in *(1..oo)*
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)