From 82da7eed343151e11bb281ea37136812a0a93712 Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Sat, 14 May 2016 22:35:51 +0200 Subject: vim-patch:7.4.1397 Problem: Sort test fails on MS-Windows. Solution: Correct the compare function. https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e --- test/functional/legacy/function_sort_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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) -- cgit