RosettaCodeData/Task/Assertions/Groovy/assertions-1.groovy
2023-07-01 13:44:08 -04:00

3 lines
84 B
Groovy

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