Skip to content

Commit 51d1d53

Browse files
committed
patch 7.4.1468
Problem: Sort test doesn't test with "1" argument. Solution: Also test ignore-case sorting. (Yasuhiro Matsumoto)
1 parent 10b369f commit 51d1d53

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/testdir/test_sort.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ endfunc
3838

3939
func Test_sort_default()
4040
" docs say omitted, empty or zero argument sorts on string representation.
41-
call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"]))
42-
call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"], ''))
43-
call assert_equal(["2", 1, 3.3], sort([3.3, 1, "2"], 0))
41+
call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"]))
42+
call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], ''))
43+
call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 0))
44+
call assert_equal(['2', 'A', 'a', 'AA', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 1))
4445
call assert_fails('call sort([3.3, 1, "2"], 3)', "E474")
4546
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1468,
746748
/**/
747749
1467,
748750
/**/

0 commit comments

Comments
 (0)