From 8c3858b01623f9527b57b13c44ff97c67bafb00b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 19 Jan 2014 18:41:55 +0200 Subject: Move tests in basic/tests/ up one level preparating to multiple test dirs. --- tests/basics/list1.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/basics/list1.py (limited to 'tests/basics/list1.py') diff --git a/tests/basics/list1.py b/tests/basics/list1.py new file mode 100644 index 0000000000..250a12b704 --- /dev/null +++ b/tests/basics/list1.py @@ -0,0 +1,18 @@ +# basic list functionality +x = [1, 2, 3 * 4] +print(x) +x[0] = 4 +print(x) +x[1] += -4 +print(x) +x.append(5) +print(x) +f = x.append +f(4) +print(x) + +x.extend([100, 200]) +print(x) + +x += [2, 1] +print(x) -- cgit v1.2.3