summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-05-22 22:09:40 +0000
committerBram Moolenaar <Bram@vim.org>2005-05-22 22:09:40 +0000
commitde934d77b1623f08fc1a30d91f7b58f6630dd1d1 (patch)
tree8651c674f15fdfb6bfc90de24746b2c0b79c3348 /src/testdir
parent2389c3c6402fedaa5b198a7bed04daabc2939e7b (diff)
downloadvim-git-de934d77b1623f08fc1a30d91f7b58f6630dd1d1.tar.gz
updated for version 7.0075
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test55.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test55.in b/src/testdir/test55.in
index 46a857b12..e25d6ca71 100644
--- a/src/testdir/test55.in
+++ b/src/testdir/test55.in
@@ -266,6 +266,15 @@ STARTTEST
:$put =string(reverse(sort(l)))
:$put =string(sort(reverse(sort(l))))
:"
+:" splitting a string to a List
+:$put =string(split(' aa bb '))
+:$put =string(split(' aa bb ', '\W\+', 0))
+:$put =string(split(' aa bb ', '\W\+', 1))
+:$put =string(split(' aa bb ', '\W', 1))
+:$put =string(split(':aa::bb:', ':', 0))
+:$put =string(split(':aa::bb:', ':', 1))
+:$put =string(split('aa,,bb, cc,', ',\s*', 1))
+:"
:endfun
:call Test(1, 2, [3, 4], {5: 6}) " This may take a while
:"