Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
13962:cdda5c08011a | 13963:1174611ad715 |
---|---|
50 call assert_equal(expected[2:], getline(1,'$'), s:Mess(s:test)) | 50 call assert_equal(expected[2:], getline(1,'$'), s:Mess(s:test)) |
51 | 51 |
52 " Test 5: Print 120 bytes as continuous hexdump with 20 octets per line | 52 " Test 5: Print 120 bytes as continuous hexdump with 20 octets per line |
53 let s:test += 1 | 53 let s:test += 1 |
54 %d | 54 %d |
55 exe '0r! ' . s:xxd_cmd . ' -l 120 -ps -c 20 ../../runtime/doc/xxd.1' | 55 let fname = '../../runtime/doc/xxd.1' |
56 if has('win32') && !filereadable(fname) | |
57 let fname = '../../doc/xxd.1' | |
58 endif | |
59 exe '0r! ' . s:xxd_cmd . ' -l 120 -ps -c 20 ' . fname | |
56 $d | 60 $d |
57 let expected = [ | 61 let expected = [ |
58 \ '2e54482058584420312022417567757374203139', | 62 \ '2e54482058584420312022417567757374203139', |
59 \ '39362220224d616e75616c207061676520666f72', | 63 \ '39362220224d616e75616c207061676520666f72', |
60 \ '20787864220a2e5c220a2e5c222032317374204d', | 64 \ '20787864220a2e5c220a2e5c222032317374204d', |
64 call assert_equal(expected, getline(1,'$'), s:Mess(s:test)) | 68 call assert_equal(expected, getline(1,'$'), s:Mess(s:test)) |
65 | 69 |
66 " Test 6: Print the date from xxd.1 | 70 " Test 6: Print the date from xxd.1 |
67 let s:test += 1 | 71 let s:test += 1 |
68 %d | 72 %d |
69 exe '0r! ' . s:xxd_cmd . ' -s 0x36 -l 13 -c 13 ../../runtime/doc/xxd.1' | 73 exe '0r! ' . s:xxd_cmd . ' -s 0x36 -l 13 -c 13 ' . fname |
70 $d | 74 $d |
71 call assert_equal('00000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996', getline(1), s:Mess(s:test)) | 75 call assert_equal('00000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996', getline(1), s:Mess(s:test)) |
72 | 76 |
73 " Test 7: Print C include | 77 " Test 7: Print C include |
74 let s:test += 1 | 78 let s:test += 1 |