diff options
Diffstat (limited to 'tests/basics/set_update.py')
-rw-r--r-- | tests/basics/set_update.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/set_update.py b/tests/basics/set_update.py new file mode 100644 index 0000000000..78cd763560 --- /dev/null +++ b/tests/basics/set_update.py @@ -0,0 +1,12 @@ +def report(s): + l = list(s) + l.sort() + print(l) + +s = {1} +s.update() +report(s) +s.update([2]) +report(s) +s.update([1,3], [2,2,4]) +report(s) |