0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1468

Problem:    Sort test doesn't test with "1" argument.
Solution:   Also test ignore-case sorting. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2016-03-01 22:51:46 +01:00
parent 10b369f670
commit 51d1d53680
2 changed files with 6 additions and 3 deletions

View File

@@ -38,8 +38,9 @@ endfunc
func Test_sort_default() func Test_sort_default()
" docs say omitted, empty or zero argument sorts on string representation. " 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', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"]))
call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"], '')) call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], ''))
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"], 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") call assert_fails('call sort([3.3, 1, "2"], 3)', "E474")
endfunc endfunc

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1468,
/**/ /**/
1467, 1467,
/**/ /**/