Move tests in basic/tests/ up one level preparating to multiple test dirs.
This commit is contained in:
12
tests/basics/set_intersection.py
Normal file
12
tests/basics/set_intersection.py
Normal file
@@ -0,0 +1,12 @@
|
||||
def report(s):
|
||||
l = list(s)
|
||||
l.sort()
|
||||
print(l)
|
||||
|
||||
s = {1, 2, 3, 4}
|
||||
report(s)
|
||||
report(s.intersection({1, 3}))
|
||||
report(s.intersection([3, 4]))
|
||||
|
||||
print(s.intersection_update([1]))
|
||||
report(s)
|
||||
Reference in New Issue
Block a user