diff options
Diffstat (limited to 'data/vim/patches/8.1.0823')
-rw-r--r-- | data/vim/patches/8.1.0823 | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/data/vim/patches/8.1.0823 b/data/vim/patches/8.1.0823 new file mode 100644 index 000000000..c63f97d63 --- /dev/null +++ b/data/vim/patches/8.1.0823 @@ -0,0 +1,84 @@ +To: vim_dev@googlegroups.com +Subject: Patch 8.1.0823 +Fcc: outbox +From: Bram Moolenaar <Bram@moolenaar.net> +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 8.1.0823 +Problem: Not sufficient testing of xxd. +Solution: Add some more test coverage. +Files: src/testdir/test_xxd.vim + + +*** ../vim-8.1.0822/src/testdir/test_xxd.vim 2019-01-25 21:52:12.190931859 +0100 +--- src/testdir/test_xxd.vim 2019-01-26 14:08:03.325071260 +0100 +*************** +*** 75,81 **** + let s:test += 1 + for arg in ['-l 13', '-l13', '-len 13'] + %d +! exe '0r! ' . s:xxd_cmd . ' -s 0x36 -l 13 -cols 13 ' . fname + $d + call assert_equal('00000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996', getline(1), s:Mess(s:test)) + endfor +--- 75,81 ---- + let s:test += 1 + for arg in ['-l 13', '-l13', '-len 13'] + %d +! exe '0r! ' . s:xxd_cmd . ' -s 0x36 ' . arg . ' -cols 13 ' . fname + $d + call assert_equal('00000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996', getline(1), s:Mess(s:test)) + endfor +*************** +*** 131,136 **** +--- 131,154 ---- + call delete('XXDfile') + endfor + ++ " Test 11: reverse with CR, hex upper, Postscript style with a TAB ++ let s:test += 1 ++ call writefile([" 54455354\t610B6364 30390A TESTa\0x0bcd09.\r"], 'Xinput') ++ silent exe '!' . s:xxd_cmd . ' -r -p < Xinput > XXDfile' ++ let blob = readfile('XXDfile', 'B') ++ call assert_equal(0z54455354.610B6364.30390A, blob) ++ call delete('Xinput') ++ call delete('XXDfile') ++ ++ " Test 12: reverse with seek ++ let s:test += 1 ++ call writefile(["00000000: 54455354\t610B6364 30390A TESTa\0x0bcd09.\r"], 'Xinput') ++ silent exe '!' . s:xxd_cmd . ' -r -seek 5 < Xinput > XXDfile' ++ let blob = readfile('XXDfile', 'B') ++ call assert_equal(0z0000000000.54455354.610B6364.30390A, blob) ++ call delete('Xinput') ++ call delete('XXDfile') ++ + " TODO: + " -o -offset + +*** ../vim-8.1.0822/src/version.c 2019-01-25 22:29:54.139821894 +0100 +--- src/version.c 2019-01-26 14:10:21.939998353 +0100 +*************** +*** 789,790 **** +--- 789,792 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 823, + /**/ + +-- + [clop clop] +GUARD #1: Halt! Who goes there? +ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of + Camelot. King of the Britons, defeator of the Saxons, sovereign of + all England! +GUARD #1: Pull the other one! + The Quest for the Holy Grail (Monty Python) + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ an exciting new programming language -- http://www.Zimbu.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |