summaryrefslogtreecommitdiff
path: root/src/testdir/test55.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-07-02 19:06:18 +0200
committerBram Moolenaar <Bram@vim.org>2014-07-02 19:06:18 +0200
commitc35e3de8cc0786609fd7975416d22e7193f7187d (patch)
tree3f0fc44ee14a7fc21ce73e7cc449d50a78148a4a /src/testdir/test55.in
parent81439a6d1b45bbef9c8dc03d76f01b6a8165e2ce (diff)
downloadvim-git-c35e3de8cc0786609fd7975416d22e7193f7187d.tar.gz
updated for version 7.4.351v7.4.351
Problem: sort() is not stable. Solution: When the items are identical, compare the pointers.
Diffstat (limited to 'src/testdir/test55.in')
-rw-r--r--src/testdir/test55.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test55.in b/src/testdir/test55.in
index ace97bf30..8e073f30f 100644
--- a/src/testdir/test55.in
+++ b/src/testdir/test55.in
@@ -332,9 +332,9 @@ 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.22, 'foo']
+:let l=[7, 9, 'one', 18, 12, 22, 'two', 10.0e-16, -1, 'three', 0xff, 0.22, 'four']
:$put =string(sort(copy(l), 'n'))
-:let l=[7, 9, 18, 12, 22, 10.0e-16, -1, 0xff, 0, -0, 0.22, 'foo', 'FOOBAR',{}, []]
+:let l=[7, 9, 18, 12, 22, 10.0e-16, -1, 0xff, 0, -0, 0.22, 'bar', 'BAR', 'Bar', 'Foo', 'FOO', 'foo', 'FOOBAR', {}, []]
:$put =string(sort(copy(l), 1))
:$put =string(sort(copy(l), 'i'))
:$put =string(sort(copy(l)))