summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-05 23:58:49 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-05 23:58:49 +0000
commit8137b004b004d8e3a594eab90afccb72b779273a (patch)
tree194364c2d286c23a17182bca062261817be91d96 /tests
parentaa35fc60d77085781ab862fa9a048d3c35823d83 (diff)
parentd52a0318ce266e1d9ce0d877f64a8fe097cef080 (diff)
Merge branch 'list_remove' of git://github.com/chipaca/micropython into chipaca-list_remove
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/list_remove.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/tests/list_remove.py b/tests/basics/tests/list_remove.py
new file mode 100644
index 000000000..81b2b3d97
--- /dev/null
+++ b/tests/basics/tests/list_remove.py
@@ -0,0 +1,9 @@
+a = [1, 2, 3]
+print(a.remove(2))
+print(a)
+try:
+ a.remove(2)
+except ValueError:
+ print("Raised ValueError")
+else:
+ raise AssertionError("Did not raise ValueError")