comparison src/testdir/test_blob.vim @ 20120:16460964c304 v8.2.0615

patch 8.2.0615: regexp benchmark stest is old style Commit: https://github.com/vim/vim/commit/ad48e6c1590842ab6d48e6caba3e9250734dae27 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 21 22:19:45 2020 +0200 patch 8.2.0615: regexp benchmark stest is old style Problem: Regexp benchmark stest is old style. Solution: Make it a new style test. Fix using a NULL list. Add more tests. (Yegappan Lakshmanan, closes #5963)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Apr 2020 22:30:03 +0200
parents e82996ad131f
children 0b35a7ffceb2
comparison
equal deleted inserted replaced
20119:35c4224dc232 20120:16460964c304
289 call assert_equal(3, 0z11110111->index(0x11, 2)) 289 call assert_equal(3, 0z11110111->index(0x11, 2))
290 call assert_equal(2, index(0z11111111, 0x11, -2)) 290 call assert_equal(2, index(0z11111111, 0x11, -2))
291 call assert_equal(3, index(0z11110111, 0x11, -2)) 291 call assert_equal(3, index(0z11110111, 0x11, -2))
292 call assert_equal(0, index(0z11110111, 0x11, -10)) 292 call assert_equal(0, index(0z11110111, 0x11, -10))
293 call assert_fails("echo index(0z11110111, 0x11, [])", 'E745:') 293 call assert_fails("echo index(0z11110111, 0x11, [])", 'E745:')
294 call assert_equal(-1, index(test_null_blob(), 1))
294 295
295 call assert_fails('call index("asdf", 0)', 'E897:') 296 call assert_fails('call index("asdf", 0)', 'E897:')
296 endfunc 297 endfunc
297 298
298 func Test_blob_insert() 299 func Test_blob_insert()