You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests: Add test on set/frozenset equality.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
try:
|
||||
frozenset
|
||||
except NameError:
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
|
||||
# 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 uPy
|
||||
#print(set('abc') in set([frozenset('abc')]))
|
||||
Reference in New Issue
Block a user