Mercurial > vim
comparison src/testdir/test_increment.vim @ 9361:f089eb0a5fa4 v7.4.1962
commit https://github.com/vim/vim/commit/52df117df724a7ad20affdf15214d2df2e507dcc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 26 19:38:19 2016 +0200
patch 7.4.1962
Problem: Two test files for increment/decrement.
Solution: Move the old style test into the new style test. (Hirohito
Higashi, closes https://github.com/vim/vim/issues/881)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Jun 2016 19:45:06 +0200 |
parents | 6a1becf4f282 |
children | 3ee84d270ea7 |
comparison
equal
deleted
inserted
replaced
9360:25b3f5287dbc | 9361:f089eb0a5fa4 |
---|---|
733 exec "norm! ggl\<C-A>jx" | 733 exec "norm! ggl\<C-A>jx" |
734 call assert_equal(["hello 11", "worl"], getline(1, '$')) | 734 call assert_equal(["hello 11", "worl"], getline(1, '$')) |
735 call assert_equal([0, 2, 4, 0], getpos('.')) | 735 call assert_equal([0, 2, 4, 0], getpos('.')) |
736 endfunc | 736 endfunc |
737 | 737 |
738 " The test35 unified to this file. | |
739 func Test_normal_increment_03() | |
740 call setline(1, ["100 0x100 077 0", | |
741 \ "100 0x100 077 ", | |
742 \ "100 0x100 077 0xfF 0xFf", | |
743 \ "100 0x100 077 "]) | |
744 set nrformats=octal,hex | |
745 exec "norm! gg\<C-A>102\<C-X>\<C-A>l\<C-X>l\<C-A>64\<C-A>128\<C-X>$\<C-X>" | |
746 set nrformats=octal | |
747 exec "norm! j0\<C-A>102\<C-X>\<C-A>l\<C-X>2\<C-A>w65\<C-A>129\<C-X>blx6lD" | |
748 set nrformats=hex | |
749 exec "norm! j0101\<C-X>l257\<C-X>\<C-A>Txldt \<C-A> \<C-X> \<C-X>" | |
750 set nrformats= | |
751 exec "norm! j0200\<C-X>l100\<C-X>w78\<C-X>\<C-A>k" | |
752 call assert_equal(["0 0x0ff 0000 -1", | |
753 \ "0 1x100 0777777", | |
754 \ "-1 0x0 078 0xFE 0xfe", | |
755 \ "-100 -100x100 000 "], getline(1, '$')) | |
756 call assert_equal([0, 3, 25, 0], getpos('.')) | |
757 endfunc | |
758 | |
738 | 759 |
739 " vim: tabstop=2 shiftwidth=2 expandtab | 760 " vim: tabstop=2 shiftwidth=2 expandtab |