diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-01-04 04:25:46 -0800 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-01-04 04:25:46 -0800 |
| commit | 597bb2f2496fd2d89a69ad6b00ba212359aa96bf (patch) | |
| tree | e071ed5cf40ef915265a9cb4b26afecf3dab05f6 /tests | |
| parent | c8d1384fc0c7aafa5dee3445ece20f4e43dfa9c1 (diff) | |
| parent | 26c211648bc00085233ece9c53f19a64ecca41fa (diff) | |
Merge pull request #60 from chipaca/list_copy
Implemented list.copy. Fixes issue #54.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/list_copy.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/tests/list_copy.py b/tests/basics/tests/list_copy.py new file mode 100644 index 000000000..bc450782e --- /dev/null +++ b/tests/basics/tests/list_copy.py @@ -0,0 +1,7 @@ +# list copy tests +a = [1, 2, []] +b = a.copy() +a[-1].append(1) +a.append(4) +print(a) +print(b) |
