title: Does positive assert message exist in Groovy?
body: <p>There is <a href="http://grails.asia/groovy-assert-examples" rel="nofollow noreferrer">a Negative Groovy Assert with Message</a> like:</p>
  
  <pre><code>def name = "John"
  assert name == "Peter" : "Name should be John"
  </code></pre>
  
  <p>Which gives output:</p>
  
  <pre><code>Caught: java.lang.AssertionError: Name should be John. Expression: (name == Peter). Values: name = John
  java.lang.AssertionError: Name should be John. Expression: (name == Peter). Values: name = John
  </code></pre>
  
  <p>But if the statement is <code>true</code> there is no information in the log. So when you (or your coworker) checks the log later (coworker does not know the checks you implemented) you have no idea about assertions which had place.</p>
  
  <p>So I'd like to log positive assertions. Something like (adding positive message <code>? "Name is " + name</code>):</p>
  
  <pre><code>def name = "Peter"
  assert name == "Peter" : "Name should be John" ? "Name is " + name
  </code></pre>
  
  <p>Does it exists? I know I can log message after the assertion e.g.: <code>log("Assert is correct: Name is " + name)</code> but I'd like to do it in one line assertion.</p>