RosettaCodeData/Task/Empty-string/Groovy/empty-string.groovy

6 lines
97 B
Groovy

def s = '' // or "" if you wish
assert s.empty
s = '1 is the loneliest number'
assert !s.empty