summaryrefslogtreecommitdiff
path: root/src/testdir/test55.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-25 17:31:09 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-25 17:31:09 +0200
commite8a3492548468c9d055adeb9f8d352e2c4482b19 (patch)
tree1524f2de443058cd35f153b6345e755338d6162b /src/testdir/test55.in
parent72e8f0bcc1311aaec8949ddd9c0d0515c03ca3e0 (diff)
downloadvim-e8a3492548468c9d055adeb9f8d352e2c4482b19.zip
updated for version 7.4.341
Problem: sort() doesn't handle numbers well. Solution: Add an argument to specify sorting on numbers. (Christian Brabandt)
Diffstat (limited to 'src/testdir/test55.in')
-rw-r--r--src/testdir/test55.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test55.in b/src/testdir/test55.in
index 85a806377..f12dc2d22 100644
--- a/src/testdir/test55.in
+++ b/src/testdir/test55.in
@@ -332,6 +332,11 @@ let l = [0, 1, 2, 3]
:$put =string(reverse(sort(l)))
:$put =string(sort(reverse(sort(l))))
:$put =string(uniq(sort(l)))
+:let l=[7, 9, 18, 12, 22, 10.0e-16, -1, 0xff, 0, -0, 0.22, 'foo', 'FOOBAR',{}, []]
+:$put =string(sort(copy(l), 'n'))
+:$put =string(sort(copy(l), 1))
+:$put =string(sort(copy(l), 'i'))
+:$put =string(sort(copy(l)))
:"
:" splitting a string to a List
:$put =string(split(' aa bb '))