vim-patch:7.4.1468

Problem:    Sort test doesn't test with "1" argument.
Solution:   Also test ignore-case sorting. (Yasuhiro Matsumoto)

51d1d53680
This commit is contained in:
Jurica Bradaric 2016-05-14 22:51:05 +02:00
parent b2d15fbebc
commit 6c550a4f13
2 changed files with 5 additions and 4 deletions

View File

@ -225,7 +225,7 @@ static int included_patches[] = {
// 1471 NA
// 1470 NA
// 1469 NA
// 1468,
1468,
// 1467 NA
// 1466 NA
// 1465 NA

View File

@ -44,9 +44,10 @@ describe('sort', function()
it('default sort', function()
-- docs say omitted, empty or zero argument sorts on string representation
eq({'2', 1, 3.3}, eval('sort([3.3, 1, "2"])'))
eq({'2', 1, 3.3}, eval([[sort([3.3, 1, "2"], '')]]))
eq({'2', 1, 3.3}, eval('sort([3.3, 1, "2"], 0)'))
eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"])'))
eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval([[sort([3.3, 1, "2", "A", "a", "AA"], '')]]))
eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"], 0)'))
eq({'2', 'A', 'a', 'AA', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"], 1)'))
neq(exc_exec('call sort([3.3, 1, "2"], 3)'):find('E474:'), nil)
end)
end)