Mercurial > vim
comparison src/testdir/test_makeencoding.vim @ 27873:d1af65b322d0 v8.2.4462
patch 8.2.4462: not enough testing for quickfix code
Commit: https://github.com/vim/vim/commit/9c9be05b17ececb1515a2f41a4dedbf848d3d8b6
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Feb 24 12:33:17 2022 +0000
patch 8.2.4462: not enough testing for quickfix code
Problem: Not enough testing for quickfix code.
Solution: Add more tests. Fix uncovered problem. (Yegappan Lakshmanan,
closes #9839)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Feb 2022 13:45:03 +0100 |
parents | 08940efa6b4e |
children |
comparison
equal
deleted
inserted
replaced
27872:7f09baac337b | 27873:d1af65b322d0 |
---|---|
101 \ getline('.')) | 101 \ getline('.')) |
102 lclose | 102 lclose |
103 endfor | 103 endfor |
104 endfunc | 104 endfunc |
105 | 105 |
106 " Test for an error file with a long line that needs an encoding conversion | |
107 func Test_longline_conversion() | |
108 new | |
109 call setline(1, ['Xfile:10:' .. repeat("\xe0", 2000)]) | |
110 write ++enc=latin1 Xerr.out | |
111 bw! | |
112 set errorformat& | |
113 set makeencoding=latin1 | |
114 cfile Xerr.out | |
115 call assert_equal(repeat("\u00e0", 2000), getqflist()[0].text) | |
116 call delete('Xerr.out') | |
117 set makeencoding& | |
118 endfunc | |
119 | |
106 " vim: shiftwidth=2 sts=2 expandtab | 120 " vim: shiftwidth=2 sts=2 expandtab |