RosettaCodeData/Task/Assertions/Groovy/assertions-1.groovy

4 lines
84 B
Groovy
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
def checkTheAnswer = {
assert it == 42 : "This: " + it + " is not the answer!"
}