diff src/testdir/test_sort.vim @ 8208:c11aaa31a0ed v7.4.1397

commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 22 23:50:28 2016 +0100 patch 7.4.1397 Problem: Sort test fails on MS-Windows. Solution: Correct the compare function.
author Christian Brabandt <cb@256bit.org>
date Tue, 23 Feb 2016 00:00:04 +0100
parents c16aa03d8db5
children 2aa24f702b8d
line wrap: on
line diff
--- a/src/testdir/test_sort.vim
+++ b/src/testdir/test_sort.vim
@@ -2,11 +2,11 @@
 
 :func Compare1(a, b) abort
     call sort(range(3), 'Compare2')
-    return a:a ># a:b
+    return a:a - a:b
 :endfunc
 
 :func Compare2(a, b) abort
-    return a:a <# a:b
+    return a:a - a:b
 :endfunc
 
 func Test_sort_strings()