summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-03 23:22:53 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-03 23:22:53 +0000
commit069ded95147c26a1c5b5a4c2c21c1daf94191bb5 (patch)
treebaec8c4b96a62e3a87da626ad4bc08d2d1869a60 /tests
parent64427d6ee62c02d5ac2d9c8aa555c1fa4310fc40 (diff)
Added list.clear. Fixes issue #53.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/list_clear.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/tests/list_clear.py b/tests/basics/tests/list_clear.py
new file mode 100644
index 000000000..406d7e823
--- /dev/null
+++ b/tests/basics/tests/list_clear.py
@@ -0,0 +1,4 @@
+# tests list.clear
+x = [1, 2, 3, 4]
+x.clear()
+print(x)