comparison src/testdir/test_vim9_builtin.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 7e0d8f1cae7d
children 5db7d275543c
comparison
equal deleted inserted replaced
23874:4aff5ea80b69 23875:54b583156d53
822 assert_equal(['d'], getbufline(b, 4)) 822 assert_equal(['d'], getbufline(b, 4))
823 assert_equal(['e'], getbufline(b, 5)) 823 assert_equal(['e'], getbufline(b, 5))
824 assert_equal([], getbufline(b, 6)) 824 assert_equal([], getbufline(b, 6))
825 assert_equal([], getbufline(b, 2, 1)) 825 assert_equal([], getbufline(b, 2, 1))
826 826
827 setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()]) 827 if has('job')
828 assert_equal(["function('eval')", 828 setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()])
829 "{'key': 123}", 829 assert_equal(["function('eval')",
830 "no process"], 830 "{'key': 123}",
831 getbufline(b, 2, 4)) 831 "no process"],
832 getbufline(b, 2, 4))
833 endif
832 834
833 exe 'bwipe! ' .. b 835 exe 'bwipe! ' .. b
834 END 836 END
835 CheckDefAndScriptSuccess(lines) 837 CheckDefAndScriptSuccess(lines)
836 enddef 838 enddef