Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7699

collate() on empty list shall return empty list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.4, 2.4.5
    • 2.4.8
    • groovy-jdk
    • None
    • 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

    Description

      collate() on empty list shall return empty list instead of list containing one element (empty list).

      Expected:

      [].collate(n) == []

      Actual:

      [].collate(n) == [[]]

      where n is int in (1..oo)

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              mmally MichaƂ Mally
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: