You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/29 10:51:20 UTC
[jira] [Commented] (GROOVY-7699) collate() on empty list shall
return empty list
[ https://issues.apache.org/jira/browse/GROOVY-7699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399125#comment-15399125 ]
ASF GitHub Bot commented on GROOVY-7699:
----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/groovy/pull/205
> 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
> Priority: Minor
>
> 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.4#6332)