Mercurial > vim
comparison src/testdir/test_diffmode.vim @ 23027:f74978697fb6 v8.2.2060
patch 8.2.2060: check for features implemented with "if"
Commit: https://github.com/vim/vim/commit/aeb313f355cd67638e3c611354ce401d86f56afe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 27 19:13:28 2020 +0100
patch 8.2.2060: check for features implemented with "if"
Problem: Check for features implemented with "if".
Solution: Use the Check commands. (Ken Takata, closes https://github.com/vim/vim/issues/7383)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Nov 2020 19:15:04 +0100 |
parents | b27601c0d289 |
children | e313b6ee2d9c |
comparison
equal
deleted
inserted
replaced
23026:1f43d20ca299 | 23027:f74978697fb6 |
---|---|
619 call assert_equal(2, line('.')) | 619 call assert_equal(2, line('.')) |
620 %bwipe! | 620 %bwipe! |
621 endfunc | 621 endfunc |
622 | 622 |
623 func Test_diffexpr() | 623 func Test_diffexpr() |
624 if !executable('diff') | 624 CheckExecutable diff |
625 return | |
626 endif | |
627 | 625 |
628 func DiffExpr() | 626 func DiffExpr() |
629 " Prepent some text to check diff type detection | 627 " Prepent some text to check diff type detection |
630 call writefile(['warning', ' message'], v:fname_out) | 628 call writefile(['warning', ' message'], v:fname_out) |
631 silent exe '!diff ' . v:fname_in . ' ' . v:fname_new . '>>' . v:fname_out | 629 silent exe '!diff ' . v:fname_in . ' ' . v:fname_new . '>>' . v:fname_out |