diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-04 01:15:01 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-04 01:15:01 +0000 |
| commit | 45a87446179c0c629a2ae89e24fa61919a57c0e5 (patch) | |
| tree | e193d701573541468cd338a465eb5b83a813bc7f /tests | |
| parent | 5d4a8213395b1e27d303379772c90b3b0adc82d5 (diff) | |
Implements list.insert. Fixes issue #61.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/list_insert.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/tests/list_insert.py b/tests/basics/tests/list_insert.py new file mode 100644 index 000000000..6db97cf5c --- /dev/null +++ b/tests/basics/tests/list_insert.py @@ -0,0 +1,9 @@ +a = [1, 2, 3] +a.insert(1, 42) +print(a) +a.insert(-1, -1) +print(a) +a.insert(99, 99) +print(a) +a.insert(-99, -99) +print(a) |
