diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-12 15:29:11 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-12 15:29:11 +0000 |
| commit | 19b14d3d8ae229f17f8b63825f96220db37e3770 (patch) | |
| tree | 2cb336aa5cc22c853e53cf99047ca5245b3ecb74 /tests | |
| parent | 0ce03b48a04a7766f8694b1de8a88073542dcc20 (diff) | |
Implemented set.add
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/set_add.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/set_add.py b/tests/basics/tests/set_add.py new file mode 100644 index 000000000..f2a372f30 --- /dev/null +++ b/tests/basics/tests/set_add.py @@ -0,0 +1,5 @@ +s = {1, 2, 3, 4} +print(s.add(5)) +l = list(s) +l.sort() +print(l) |
