Lines Matching refs:byteidx
1196 " Test for byteidx() and byteidxcomp() functions
1199 call assert_equal(0, byteidx(a, 0))
1201 call assert_equal(1, byteidx(a, 1))
1203 call assert_equal(3, byteidx(a, 2))
1205 call assert_equal(4, byteidx(a, 3))
1207 call assert_equal(-1, byteidx(a, 4))
1211 call assert_equal(0, b->byteidx(0))
1212 call assert_equal(1, b->byteidx(1))
1213 call assert_equal(4, b->byteidx(2))
1214 call assert_equal(5, b->byteidx(3))
1215 call assert_equal(-1, b->byteidx(4))
1216 call assert_fails("call byteidx([], 0)", 'E730:')