Mercurial > vim
comparison src/testdir/test_function_lists.vim @ 20693:f342bdc79295 v8.2.0900
patch 8.2.0900: function list test fails on MS-Windows
Commit: https://github.com/vim/vim/commit/9155825b2428ef6bf654204a534b033a6879c90d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 4 17:19:05 2020 +0200
patch 8.2.0900: function list test fails on MS-Windows
Problem: Function list test fails on MS-Windows.
Solution: Make sure the fileformat is "unix"
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Jun 2020 17:30:03 +0200 |
parents | b005de48b374 |
children | 27033b8bba0e |
comparison
equal
deleted
inserted
replaced
20692:6ba9ced9d801 | 20693:f342bdc79295 |
---|---|
48 v/^ {/d | 48 v/^ {/d |
49 g/\/\/ obsolete$/d | 49 g/\/\/ obsolete$/d |
50 %s/^ {"// | 50 %s/^ {"// |
51 %s/".*// | 51 %s/".*// |
52 sort u | 52 sort u |
53 w! Xsorted_current_global_functions | 53 w! ++ff=unix Xsorted_current_global_functions |
54 | 54 |
55 " Verify that the ":help functions" list is complete and in ASCII order. | 55 " Verify that the ":help functions" list is complete and in ASCII order. |
56 | 56 |
57 enew! | 57 enew! |
58 read ../../runtime/doc/eval.txt | 58 read ../../runtime/doc/eval.txt |
82 .,$d | 82 .,$d |
83 v/^\t\S/d | 83 v/^\t\S/d |
84 %s/(.*// | 84 %s/(.*// |
85 %left | 85 %left |
86 sort u | 86 sort u |
87 w! Xfunction-list | 87 w! ++ff=unix Xfunction-list |
88 let l:unequal = assert_equalfile("Xsorted_current_global_functions", "Xfunction-list", | 88 let l:unequal = assert_equalfile("Xsorted_current_global_functions", "Xfunction-list", |
89 \ "\":help functions-list\" incomplete") | 89 \ "\":help functions-list\" incomplete") |
90 if l:unequal && executable("diff") | 90 if l:unequal && executable("diff") |
91 call system("diff -u Xsorted_current_global_functions Xfunction-list > Xfunction-list.diff") | 91 call system("diff -u Xsorted_current_global_functions Xfunction-list > Xfunction-list.diff") |
92 endif | 92 endif |
93 | 93 |
94 " Clean up. | 94 " Clean up. |
95 | |
96 call delete("Xglobal_functions") | 95 call delete("Xglobal_functions") |
97 call delete("Xsorted_global_functions") | 96 call delete("Xsorted_global_functions") |
98 call delete("Xsorted_current_global_functions") | 97 call delete("Xsorted_current_global_functions") |
99 call delete("Xfunctions") | 98 call delete("Xfunctions") |
100 call delete("Xfunction-list") | 99 call delete("Xfunction-list") |