mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
objset: Add frozenset tests, skippable if frozenset not available.
This commit is contained in:
14
tests/basics/frozenset1.py
Normal file
14
tests/basics/frozenset1.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# basic sets
|
||||
|
||||
try:
|
||||
frozenset
|
||||
except NameError:
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
|
||||
s = frozenset({1})
|
||||
print(s)
|
||||
|
||||
s = frozenset({3, 4, 3, 1})
|
||||
print(sorted(s))
|
||||
Reference in New Issue
Block a user