You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Michał Mally (JIRA)" <ji...@apache.org> on 2015/12/02 16:24:11 UTC
[jira] [Created] (GROOVY-7699) collate() on empty list shall return
empty list
Michał Mally created GROOVY-7699:
------------------------------------
Summary: 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.5, 2.4.4
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)