micropython/tests/basics/set_unop.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
182 B
Python
Raw Normal View History

# test set unary operations
print(bool(set()))
print(bool(set('abc')))
print(len(set()))
print(len(set('abc')))
try:
hash(set('abc'))
except TypeError:
print('TypeError')