Mercurial > vim
comparison src/testdir/test_conceal.vim @ 16965:ba7727889385 v8.1.1483
patch 8.1.1483: skipped tests are not properly listed
commit https://github.com/vim/vim/commit/5d30ff19648d2ff0696cea97582b902f6a4ec0ba
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 16:12:12 2019 +0200
patch 8.1.1483: skipped tests are not properly listed
Problem: Skipped tests are not properly listed.
Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 16:15:05 +0200 |
parents | 9c90cf08cfa8 |
children | 0da9bc55c31a |
comparison
equal
deleted
inserted
replaced
16964:45ff4207d530 | 16965:ba7727889385 |
---|---|
1 " Tests for 'conceal'. | 1 " Tests for 'conceal'. |
2 " Also see test88.in (should be converted to a test function here). | 2 " Also see test88.in (should be converted to a test function here). |
3 | 3 |
4 if !has('conceal') | 4 if !has('conceal') |
5 finish | 5 throw 'Skipped: conceal feature missing' |
6 endif | 6 endif |
7 | 7 |
8 source screendump.vim | 8 source screendump.vim |
9 if !CanRunVimInTerminal() | 9 if !CanRunVimInTerminal() |
10 finish | 10 throw 'Skipped: cannot make screendumps' |
11 endif | 11 endif |
12 | 12 |
13 func Test_conceal_two_windows() | 13 func Test_conceal_two_windows() |
14 let code =<< trim [CODE] | 14 let code =<< trim [CODE] |
15 let lines = ["one one one one one", "two |hidden| here", "three |hidden| three"] | 15 let lines = ["one one one one one", "two |hidden| here", "three |hidden| three"] |