aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-05-14 22:35:51 +0200
committerJurica Bradaric <jbradaric@gmail.com>2016-06-09 20:34:43 +0200
commit82da7eed343151e11bb281ea37136812a0a93712 (patch)
tree4018fa0beabe23ed566fb0138cbe8643720422ca
parent81b9b37e01ba4ef30dc196990a0bfa3de514b5ad (diff)
downloadrneovim-82da7eed343151e11bb281ea37136812a0a93712.tar.gz
rneovim-82da7eed343151e11bb281ea37136812a0a93712.tar.bz2
rneovim-82da7eed343151e11bb281ea37136812a0a93712.zip
vim-patch:7.4.1397
Problem: Sort test fails on MS-Windows. Solution: Correct the compare function. https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e
-rw-r--r--src/nvim/version.c2
-rw-r--r--test/functional/legacy/function_sort_spec.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 1e2a6abbb0..6479690a53 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -296,7 +296,7 @@ static int included_patches[] = {
// 1400 NA
// 1399 NA
// 1398 NA
- // 1397,
+ 1397,
// 1396,
// 1395 NA
1394,
diff --git a/test/functional/legacy/function_sort_spec.lua b/test/functional/legacy/function_sort_spec.lua
index 389fbf8e80..3347dd9699 100644
--- a/test/functional/legacy/function_sort_spec.lua
+++ b/test/functional/legacy/function_sort_spec.lua
@@ -31,11 +31,11 @@ describe('sort', function()
it('ability to call sort() from a compare function', function()
execute('func Compare1(a, b) abort')
execute([[call sort(range(3), 'Compare2')]])
- execute('return a:a ># a:b')
+ execute('return a:a - a:b')
execute('endfunc')
execute('func Compare2(a, b) abort')
- execute('return a:a <# a:b')
+ execute('return a:a - a:b')
execute('endfunc')
eq({1, 3, 5}, eval("sort([3, 1, 5], 'Compare1')"))
end)