Mercurial > vim
comparison src/testdir/test_compiler.vim @ 13974:13cdf007cd2c v8.1.0005
patch 8.1.0005: test for :compiler command fails on MS-Windows
commit https://github.com/vim/vim/commit/d19b234154476401a6ad8e690f9705419095f44e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 19 16:45:15 2018 +0200
patch 8.1.0005: test for :compiler command fails on MS-Windows
Problem: Test for :compiler command fails on MS-Windows.
Solution: Ignore difference in path.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 May 2018 17:00:06 +0200 |
parents | 255967236075 |
children | 9ff35e144467 |
comparison
equal
deleted
inserted
replaced
13973:2e54dbced494 | 13974:13cdf007cd2c |
---|---|
26 bw! | 26 bw! |
27 endfunc | 27 endfunc |
28 | 28 |
29 func Test_compiler_without_arg() | 29 func Test_compiler_without_arg() |
30 let a=split(execute('compiler')) | 30 let a=split(execute('compiler')) |
31 call assert_equal($VIMRUNTIME . '/compiler/ant.vim', a[0]) | 31 call assert_match('^.*runtime/compiler/ant.vim$', a[0]) |
32 call assert_equal($VIMRUNTIME . '/compiler/bcc.vim', a[1]) | 32 call assert_match('^.*runtime/compiler/bcc.vim$', a[1]) |
33 call assert_equal($VIMRUNTIME . '/compiler/xmlwf.vim', a[-1]) | 33 call assert_match('^.*runtime/compiler/xmlwf.vim$', a[-1]) |
34 endfunc | 34 endfunc |
35 | 35 |
36 func Test_compiler_completion() | 36 func Test_compiler_completion() |
37 call feedkeys(":compiler \<C-A>\<C-B>\"\<CR>", 'tx') | 37 call feedkeys(":compiler \<C-A>\<C-B>\"\<CR>", 'tx') |
38 call assert_match('^"compiler ant bcc .* xmlwf$', @:) | 38 call assert_match('^"compiler ant bcc .* xmlwf$', @:) |