mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -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
|
||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1468,
|
||||
/**/
|
||||
1467,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user