class Test def main .testDuplicateMember .testSetErrors def testDuplicateMember t = {1, 2, 2} # .warning. Duplicate member in set. assert 1 in t assert 2 in t t = {1, 2, 1} # .warning. Duplicate member in set. assert 1 in t def testSetErrors # Set s = {1, 2, 3} s.add('aoeu') # .error. expects type int