Mercurial > vim
comparison src/testdir/test_expr.vim @ 9772:560291211303 v7.4.2161
commit https://github.com/vim/vim/commit/7ab6defcafe017a3ad58580a3e56dab705b1ed8b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 5 22:51:13 2016 +0200
patch 7.4.2161
Problem: Expression test fails without conceal feature.
Solution: Only check "conceal" with the conceal feature.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 05 Aug 2016 23:00:07 +0200 |
parents | ba98d7ce0d74 |
children | 41c5d59e7e10 |
comparison
equal
deleted
inserted
replaced
9771:a8138a3ee54d | 9772:560291211303 |
---|---|
196 endfunc | 196 endfunc |
197 | 197 |
198 func Test_setmatches() | 198 func Test_setmatches() |
199 hi def link 1 Comment | 199 hi def link 1 Comment |
200 hi def link 2 PreProc | 200 hi def link 2 PreProc |
201 let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4, "conceal": 5}] | 201 let set = [{"group": 1, "pattern": 2, "id": 3, "priority": 4}] |
202 let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4, "conceal": '5'}] | 202 let exp = [{"group": '1', "pattern": '2', "id": 3, "priority": 4}] |
203 if has('conceal') | |
204 let set[0]['conceal'] = 5 | |
205 let exp[0]['conceal'] = '5' | |
206 endif | |
203 call setmatches(set) | 207 call setmatches(set) |
204 call assert_equal(exp, getmatches()) | 208 call assert_equal(exp, getmatches()) |
205 endfunc | 209 endfunc |