nadavc/groovykoans

Implement Groovy Power Asserts

Closed this issue · 2 comments

On the asserts... why not just use groovy power asserts? They're more readable (IMO), and produce the nice power assert messages when they fail. You can always tack on your desired message as a 2nd param:

assertEquals('Modify "Hola" to "Hello" to proceed', "Hello", hello)

can just be

assert hello == "Hello", 'Modify "Hola" to "Hello" to proceed'

Why learn nasty old JUnit syntax if not necessary? :)

(reported by @winkler1)

Pull request sent

Closed with pull request #6