Skip to content
Snippets Groups Projects
Commit 800b163c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/comprehension1, containment: Split set tests to separate files.

To make skippable.
parent ce2e0eeb
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ def f():
print(d[0], d[1], d[2], d[3], d[4])
# set comprehension
print({a for a in range(5)})
# see set_comprehension.py
f()
# sets, see set_containment
for i in 1, 2:
for o in {1:2}, {1}, {1:2}.keys():
for o in {1:2}, {1:2}.keys():
print("{} in {}: {}".format(i, o, i in o))
print("{} not in {}: {}".format(i, o, i not in o))
......
print({a for a in range(5)})
for i in 1, 2:
for o in {}, {1}, {2}:
print("{} in {}: {}".format(i, o, i in o))
print("{} not in {}: {}".format(i, o, i not in o))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment