diff src/testdir/test_vim9_builtin.vim @ 35190:ddd5eaa2c0dc v9.1.0415

patch 9.1.0415: Some functions are not tested Commit: https://github.com/vim/vim/commit/fe424d13ef6e5486923f23f15bb6951e3079412e Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri May 17 18:20:43 2024 +0200 patch 9.1.0415: Some functions are not tested Problem: Some functions are not tested Solution: Add a few more tests, fix a few minor problems (Yegappan Lakshmanan) closes: #14789 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 17 May 2024 18:30:06 +0200
parents 9322493ebe58
children a786d0dab454
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -2195,6 +2195,7 @@ def Test_indexof()
   indexof(l, (i, v) => v.color == 'blue')->assert_equal(1)
   indexof(l, (i, v) => v.color == 'blue', {startidx: 1})->assert_equal(1)
   indexof(l, (i, v) => v.color == 'blue', {startidx: 2})->assert_equal(3)
+  indexof(l, "")->assert_equal(-1)
   var b = 0zdeadbeef
   indexof(b, "v:val == 0xef")->assert_equal(3)