summaryrefslogtreecommitdiff
path: root/tests/basics/frozenset_set.py
blob: 2b3c683260989669e6953932261ec72027c0550d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
try:
    frozenset
except NameError:
    print("SKIP")
    raise SystemExit

# Examples from https://docs.python.org/3/library/stdtypes.html#set
# "Instances of set are compared to instances of frozenset based on their
# members. For example:"
print(set('abc') == frozenset('abc'))
# This doesn't work in MicroPython
#print(set('abc') in set([frozenset('abc')]))