diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-05-14 22:35:51 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-06-09 20:34:43 +0200 |
commit | 82da7eed343151e11bb281ea37136812a0a93712 (patch) | |
tree | 4018fa0beabe23ed566fb0138cbe8643720422ca /test/functional/legacy/function_sort_spec.lua | |
parent | 81b9b37e01ba4ef30dc196990a0bfa3de514b5ad (diff) | |
download | rneovim-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
Diffstat (limited to 'test/functional/legacy/function_sort_spec.lua')
-rw-r--r-- | test/functional/legacy/function_sort_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |