changeset 8352:2c40b40c3220 v7.4.1468

commit https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 1 22:51:46 2016 +0100 patch 7.4.1468 Problem: Sort test doesn't test with "1" argument. Solution: Also test ignore-case sorting. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Tue, 01 Mar 2016 23:00:04 +0100
parents 385c42145b31
children 4867b778aa40
files src/testdir/test_sort.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_sort.vim
+++ b/src/testdir/test_sort.vim
@@ -38,8 +38,9 @@ endfunc
 
 func Test_sort_default()
   " docs say omitted, empty or zero argument sorts on string representation.
-  call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"]))
-  call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"], ''))
-  call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"], 0))
+  call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"]))
+  call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], ''))
+  call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 0))
+  call assert_equal(['2', 'A', 'a', 'AA', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 1))
   call assert_fails('call sort([3.3, 1, "2"], 3)', "E474")
 endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1468,
+/**/
     1467,
 /**/
     1466,