summaryrefslogtreecommitdiff
path: root/src/testdir/test86.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-04-05 19:32:36 +0200
committerBram Moolenaar <Bram@vim.org>2013-04-05 19:32:36 +0200
commit24b11fb1730e37a4aa71434c130301a9369c835f (patch)
tree0b8dc8fb4edf02132027a7b2957e523ec226c71c /src/testdir/test86.in
parentb3049f4a34af835f558877c9f4c323e50269c00f (diff)
downloadvim-git-24b11fb1730e37a4aa71434c130301a9369c835f.tar.gz
updated for version 7.3.881v7.3.881
Problem: Python list does not work correctly. Solution: Fix it and add a test. (Yukihiro Nakadaira)
Diffstat (limited to 'src/testdir/test86.in')
-rw-r--r--src/testdir/test86.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/testdir/test86.in b/src/testdir/test86.in
index 5282269a3..b53b6bf39 100644
--- a/src/testdir/test86.in
+++ b/src/testdir/test86.in
@@ -321,6 +321,31 @@ EOF
:py trace_main()
:py sys.settrace(None)
:$put =string(l)
+:"
+:" Slice
+:py ll = vim.bindeval('[0, 1, 2, 3, 4, 5]')
+:py l = ll[:4]
+:$put =string(pyeval('l'))
+:py l = ll[2:]
+:$put =string(pyeval('l'))
+:py l = ll[:-4]
+:$put =string(pyeval('l'))
+:py l = ll[-2:]
+:$put =string(pyeval('l'))
+:py l = ll[2:4]
+:$put =string(pyeval('l'))
+:py l = ll[4:2]
+:$put =string(pyeval('l'))
+:py l = ll[-4:-2]
+:$put =string(pyeval('l'))
+:py l = ll[-2:-4]
+:$put =string(pyeval('l'))
+:py l = ll[:]
+:$put =string(pyeval('l'))
+:py l = ll[0:6]
+:$put =string(pyeval('l'))
+:py l = ll[-10:10]
+:$put =string(pyeval('l'))
:endfun
:"
:call Test()