mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
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:
@@ -225,7 +225,7 @@ static int included_patches[] = {
|
|||||||
// 1471 NA
|
// 1471 NA
|
||||||
// 1470 NA
|
// 1470 NA
|
||||||
// 1469 NA
|
// 1469 NA
|
||||||
// 1468,
|
1468,
|
||||||
// 1467 NA
|
// 1467 NA
|
||||||
// 1466 NA
|
// 1466 NA
|
||||||
// 1465 NA
|
// 1465 NA
|
||||||
|
@@ -44,9 +44,10 @@ describe('sort', function()
|
|||||||
|
|
||||||
it('default sort', function()
|
it('default sort', function()
|
||||||
-- docs say omitted, empty or zero argument sorts on string representation
|
-- docs say omitted, empty or zero argument sorts on string representation
|
||||||
eq({'2', 1, 3.3}, eval('sort([3.3, 1, "2"])'))
|
eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"])'))
|
||||||
eq({'2', 1, 3.3}, eval([[sort([3.3, 1, "2"], '')]]))
|
eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval([[sort([3.3, 1, "2", "A", "a", "AA"], '')]]))
|
||||||
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"], 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)
|
neq(exc_exec('call sort([3.3, 1, "2"], 3)'):find('E474:'), nil)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user