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

4 lines
84 B
Groovy
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def checkTheAnswer = {
assert it == 42 : "This: " + it + " is not the answer!"
}