comparison src/testdir/test_expr.vim @ 18000:7a19c8d6bb9e v8.1.1996

patch 8.1.1996: more functions can be used as methods Commit: https://github.com/vim/vim/commit/aad222c9c9a1e4fe6ae5a1fe95bb084619be0e65 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 6 22:46:09 2019 +0200 patch 8.1.1996: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Sep 2019 23:00:03 +0200
parents 73ddc462979d
children 988e5a868b60
comparison
equal deleted inserted replaced
17999:9fd4d58b3e5b 18000:7a19c8d6bb9e
502 let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4}] 502 let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4}]
503 if has('conceal') 503 if has('conceal')
504 let set[0]['conceal'] = 5 504 let set[0]['conceal'] = 5
505 let exp[0]['conceal'] = '5' 505 let exp[0]['conceal'] = '5'
506 endif 506 endif
507 call setmatches(set) 507 eval set->setmatches()
508 call assert_equal(exp, getmatches()) 508 call assert_equal(exp, getmatches())
509 endfunc 509 endfunc
510 510
511 func Test_empty_concatenate() 511 func Test_empty_concatenate()
512 call assert_equal('b', 'a'[4:0] . 'b') 512 call assert_equal('b', 'a'[4:0] . 'b')