micropython: add micropython component
This commit is contained in:
12
components/language/micropython/tests/basics/set_unop.py
Normal file
12
components/language/micropython/tests/basics/set_unop.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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')
|
Reference in New Issue
Block a user