You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/06/02 07:20:59 UTC

[jira] [Closed] (GROOVY-4333) The assert statement could allow newline before message

     [ https://issues.apache.org/jira/browse/GROOVY-4333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-4333.
-----------------------------
    Resolution: Not A Problem
      Assignee: Paul King

Seems to have been fixed by other issues. Both the comma and semicolon variants seem to allow a newline.

> The assert statement could allow newline before message
> -------------------------------------------------------
>
>                 Key: GROOVY-4333
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4333
>             Project: Groovy
>          Issue Type: Improvement
>          Components: syntax
>            Reporter: Nikita Y Volkov
>            Assignee: Paul King
>
> It's obvious that sometimes assert statements can become too long as in the following example:
> {code}
> assert value == entries.last().value - entries[entries.size() - 2], "Bla bla bla bla bla bla bla bla bla bla bla bla bla bla."
> {code}
> But it could become way more managable and readable if only the newline was allowed before message following the comma:
> {code}
> assert value == entries.last().value - entries[entries.size() - 2].value, 
> 	"Bla bla bla bla bla bla bla bla bla bla bla bla bla bla."
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)