]> granicus.if.org Git - vim/commitdiff
patch 8.2.0184: blob test fails v8.2.0184
authorBram Moolenaar <Bram@vim.org>
Thu, 30 Jan 2020 18:39:04 +0000 (19:39 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 30 Jan 2020 18:39:04 +0000 (19:39 +0100)
Problem:    Blob test fails.
Solution:   Check for different error when float feature is missing.

src/testdir/test_blob.vim
src/version.c

index 47c09e79f92c9060015a8a0e771958dabcc67423..79fdf44465aa4966c21ce0809d504896b3e23c36 100644 (file)
@@ -324,5 +324,9 @@ func Test_blob_lock()
 endfunc
 
 func Test_blob_sort()
-  call assert_fails('call sort(["abc", 0z11], "f")', 'E702:')
+  if has('float')
+    call assert_fails('call sort([1.0, 0z11], "f")', 'E975:')
+  else
+    call assert_fails('call sort(["abc", 0z11], "f")', 'E702:')
+  endif
 endfunc
index 4bffa7b1379a4f344c4000df3cc33ea0d15e0456..0c30f256841c02134ca051c0ed3966f15d382854 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    184,
 /**/
     183,
 /**/