comparison src/testdir/test_bufline.vim @ 23875:54b583156d53 v8.2.2479

patch 8.2.2479: set/getbufline test fails without the job feature Commit: https://github.com/vim/vim/commit/00385114dbd6a3d59516baa02e1ea86a1e7ee70e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 14:31:06 2021 +0100 patch 8.2.2479: set/getbufline test fails without the job feature Problem: set/getbufline test fails without the job feature. Solution: Check whether the job feature is supported. (Dominique Pell?, closes #7790)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 14:45:04 +0100
parents d12ef361d9de
children a433d0070c45
comparison
equal deleted inserted replaced
23874:4aff5ea80b69 23875:54b583156d53
38 call assert_equal(['d'], getbufline(b, 4)) 38 call assert_equal(['d'], getbufline(b, 4))
39 call assert_equal(['e'], getbufline(b, 5)) 39 call assert_equal(['e'], getbufline(b, 5))
40 call assert_equal([], getbufline(b, 6)) 40 call assert_equal([], getbufline(b, 6))
41 call assert_equal([], getbufline(b, 2, 1)) 41 call assert_equal([], getbufline(b, 2, 1))
42 42
43 call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()]) 43 if has('job')
44 call assert_equal(["function('eval')", 44 call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
45 \ "{'key': 123}", 45 call assert_equal(["function('eval')",
46 \ "no process"], 46 \ "{'key': 123}",
47 \ getbufline(b, 2, 4)) 47 \ "no process"],
48 \ getbufline(b, 2, 4))
49 endif
48 exe "bwipe! " . b 50 exe "bwipe! " . b
49 endfunc 51 endfunc
50 52
51 func Test_setbufline_getbufline_fold() 53 func Test_setbufline_getbufline_fold()
52 split Xtest 54 split Xtest