Mercurial > vim
comparison src/testdir/test_startup_utf8.vim @ 21765:08940efa6b4e v8.2.1432
patch 8.2.1432: various inconsistencies in test files
Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:50:36 2020 +0200
patch 8.2.1432: various inconsistencies in test files
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 19:00:08 +0200 |
parents | 1e2e81dbb958 |
children | ae10b91ac6b3 |
comparison
equal
deleted
inserted
replaced
21764:476b6faad407 | 21765:08940efa6b4e |
---|---|
29 call delete('Xtestout') | 29 call delete('Xtestout') |
30 call delete('Xtestin') | 30 call delete('Xtestin') |
31 endfunc | 31 endfunc |
32 | 32 |
33 func Test_read_fifo_utf8() | 33 func Test_read_fifo_utf8() |
34 if !has('unix') | 34 CheckUnix |
35 return | |
36 endif | |
37 " Using bash/zsh's process substitution. | 35 " Using bash/zsh's process substitution. |
38 if executable('bash') | 36 if executable('bash') |
39 set shell=bash | 37 set shell=bash |
40 elseif executable('zsh') | 38 elseif executable('zsh') |
41 set shell=zsh | 39 set shell=zsh |
42 else | 40 else |
43 return | 41 throw 'Skipped: bash or zsh is required' |
44 endif | 42 endif |
45 let linesin = ['テスト', '€ÀÈÌÒÙ'] | 43 let linesin = ['テスト', '€ÀÈÌÒÙ'] |
46 call writefile(linesin, 'Xtestin') | 44 call writefile(linesin, 'Xtestin') |
47 let before = [ | 45 let before = [ |
48 \ 'set enc=utf-8', | 46 \ 'set enc=utf-8', |
78 call WaitForAssert({-> assert_match('single', term_getline(buf, 1))}) | 76 call WaitForAssert({-> assert_match('single', term_getline(buf, 1))}) |
79 | 77 |
80 call StopVimInTerminal(buf) | 78 call StopVimInTerminal(buf) |
81 call delete('Xscript') | 79 call delete('Xscript') |
82 endfunc | 80 endfunc |
81 | |
82 " vim: shiftwidth=2 sts=2 expandtab |