diff options
Diffstat (limited to 'src/testdir/test55.in')
-rw-r--r-- | src/testdir/test55.in | 9 |
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 :" |