Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo: negation of empty collection should produce true

...

Code Block
def numbers = [1,2,3]
assert numbers //true, as numbers in not empty
numbers = []
assert !numbers //falsetrue, as numbers is now an empty collection

...