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

4 lines
84 B
Groovy

def checkTheAnswer = {
assert it == 42 : "This: " + it + " is not the answer!"
}