Mercurial > vim
diff src/testdir/test_xxd.vim @ 13963:1174611ad715 v8.1.0000
Vim 8.1 release
commit https://github.com/vim/vim/commit/b1c9198afb7ff902588b45fbe44f0760a9f48375
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 17 17:04:55 2018 +0200
Vim 8.1 release
Update version number and information. Fix a couple of tests.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 17 May 2018 17:15:08 +0200 |
parents | 86eb21bb5920 |
children | 63b02fcf1361 |
line wrap: on
line diff
--- a/src/testdir/test_xxd.vim +++ b/src/testdir/test_xxd.vim @@ -52,7 +52,11 @@ func! Test_xxd() " Test 5: Print 120 bytes as continuous hexdump with 20 octets per line let s:test += 1 %d - exe '0r! ' . s:xxd_cmd . ' -l 120 -ps -c 20 ../../runtime/doc/xxd.1' + let fname = '../../runtime/doc/xxd.1' + if has('win32') && !filereadable(fname) + let fname = '../../doc/xxd.1' + endif + exe '0r! ' . s:xxd_cmd . ' -l 120 -ps -c 20 ' . fname $d let expected = [ \ '2e54482058584420312022417567757374203139', @@ -66,7 +70,7 @@ func! Test_xxd() " Test 6: Print the date from xxd.1 let s:test += 1 %d - exe '0r! ' . s:xxd_cmd . ' -s 0x36 -l 13 -c 13 ../../runtime/doc/xxd.1' + exe '0r! ' . s:xxd_cmd . ' -s 0x36 -l 13 -c 13 ' . fname $d call assert_equal('00000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996', getline(1), s:Mess(s:test))