comparison src/testdir/test_tabpage.vim @ 14455:f713e016097d v8.1.0241

patch 8.1.0241: effect of ":tabmove N" is not clear commit https://github.com/vim/vim/commit/7cc596547a582e7bc18d91312eb674906ebdc5c2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 7 13:14:46 2018 +0200 patch 8.1.0241: effect of ":tabmove N" is not clear Problem: Effect of ":tabmove N" is not clear. Solution: Add a test that shows the behavior. (Christian Brabandt, closes #3288)
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Aug 2018 13:15:04 +0200
parents 29bad8212db3
children 060cb54565c1
comparison
equal deleted inserted replaced
14454:946e148b8e63 14455:f713e016097d
103 call assert_equal(10, tabpagenr()) 103 call assert_equal(10, tabpagenr())
104 3tabmove 104 3tabmove
105 call assert_equal(4, tabpagenr()) 105 call assert_equal(4, tabpagenr())
106 7tabmove 5 106 7tabmove 5
107 call assert_equal(5, tabpagenr()) 107 call assert_equal(5, tabpagenr())
108
109 " The following are a no-op
110 norm! 2gt
111 call assert_equal(2, tabpagenr())
112 tabmove 2
113 call assert_equal(2, tabpagenr())
114 2tabmove
115 call assert_equal(2, tabpagenr())
116 tabmove 1
117 call assert_equal(2, tabpagenr())
118 1tabmove
119 call assert_equal(2, tabpagenr())
120
108 call assert_fails("99tabmove", 'E16:') 121 call assert_fails("99tabmove", 'E16:')
109 call assert_fails("+99tabmove", 'E16:') 122 call assert_fails("+99tabmove", 'E16:')
110 call assert_fails("-99tabmove", 'E16:') 123 call assert_fails("-99tabmove", 'E16:')
111 call assert_fails("tabmove foo", 'E474:') 124 call assert_fails("tabmove foo", 'E474:')
112 call assert_fails("tabmove 99", 'E474:') 125 call assert_fails("tabmove 99", 'E474:')