Skip to content

Commit eca626f

Browse files
committed
patch 8.0.0112
Problem: Tests 92 and 93 are old style. Solution: Make test92 and test93 new style. (Hirohito Higashi, closes #1289)
1 parent eebd84e commit eca626f

10 files changed

Lines changed: 216 additions & 152 deletions

File tree

src/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ test1 \
20522052
test60 test64 test65 test66 test67 test68 test69 \
20532053
test70 test72 test73 test74 test75 test77 test78 test79 \
20542054
test80 test82 test83 test84 test85 test86 test87 test88 test89 \
2055-
test90 test91 test92 test93 test94 test95 test97 test98 test99 \
2055+
test90 test91 test94 test95 test97 test98 test99 \
20562056
test100 test101 test103 test104 test107 test108:
20572057
cd testdir; rm -f [email protected]; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
20582058

@@ -2118,6 +2118,8 @@ test_arglist \
21182118
test_matchadd_conceal_utf8 \
21192119
test_menu \
21202120
test_messages \
2121+
test_mksession \
2122+
test_mksession_utf8 \
21212123
test_nested_function \
21222124
test_netbeans \
21232125
test_normal \

src/testdir/Make_all.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ SCRIPTS_ALL = \
6363
test88.out \
6464
test90.out \
6565
test91.out \
66-
test92.out \
67-
test93.out \
6866
test94.out \
6967
test95.out \
7068
test98.out \
@@ -167,6 +165,8 @@ NEW_TESTS = test_arglist.res \
167165
test_man.res \
168166
test_marks.res \
169167
test_matchadd_conceal.res \
168+
test_mksession.res \
169+
test_mksession_utf8.res \
170170
test_nested_function.res \
171171
test_netbeans.res \
172172
test_normal.res \

src/testdir/Make_vms.mms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ SCRIPT = test1.out test3.out test4.out test5.out \
9292
test72.out test75.out \
9393
test77a.out test78.out test79.out test80.out \
9494
test82.out test84.out test88.out test89.out \
95-
test90.out test91.out test92.out test93.out test94.out \
95+
test90.out test91.out test94.out \
9696
test95.out test98.out test99.out \
9797
test103.out test104.out \
9898
test107.out test108.out\

src/testdir/test92.in

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/testdir/test92.ok

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/testdir/test93.in

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/testdir/test93.ok

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/testdir/test_mksession.vim

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
" Test for :mksession, :mkview and :loadview in latin1 encoding
2+
3+
set encoding=latin1
4+
scriptencoding latin1
5+
6+
if !has('multi_byte') || !has('mksession')
7+
finish
8+
endif
9+
10+
func Test_mksession()
11+
tabnew
12+
let wrap_save = &wrap
13+
set sessionoptions=buffers splitbelow fileencoding=latin1
14+
call setline(1, [
15+
\ 'start:',
16+
\ 'no multibyte chAracter',
17+
\ ' one leaDing tab',
18+
\ ' four leadinG spaces',
19+
\ 'two consecutive tabs',
20+
\ 'two tabs in one line',
21+
\ 'one ä multibyteCharacter',
22+
\ 'aä Ä two multiByte characters',
23+
\ 'Aäöü three mulTibyte characters'
24+
\ ])
25+
let tmpfile = tempname()
26+
exec 'w! ' . tmpfile
27+
/^start:
28+
set wrap
29+
vsplit
30+
norm! j16|
31+
split
32+
norm! j16|
33+
split
34+
norm! j16|
35+
split
36+
norm! j8|
37+
split
38+
norm! j8|
39+
split
40+
norm! j16|
41+
split
42+
norm! j16|
43+
split
44+
norm! j16|
45+
wincmd l
46+
47+
set nowrap
48+
/^start:
49+
norm! j16|3zl
50+
split
51+
norm! j016|3zl
52+
split
53+
norm! j016|3zl
54+
split
55+
norm! j08|3zl
56+
split
57+
norm! j08|3zl
58+
split
59+
norm! j016|3zl
60+
split
61+
norm! j016|3zl
62+
split
63+
norm! j016|3zl
64+
split
65+
call wincol()
66+
mksession! test_mks.out
67+
let li = filter(readfile('test_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
68+
let expected = [
69+
\ 'normal! 016|',
70+
\ 'normal! 016|',
71+
\ 'normal! 016|',
72+
\ 'normal! 08|',
73+
\ 'normal! 08|',
74+
\ 'normal! 016|',
75+
\ 'normal! 016|',
76+
\ 'normal! 016|',
77+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
78+
\ " normal! 016|",
79+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
80+
\ " normal! 016|",
81+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
82+
\ " normal! 016|",
83+
\ " exe 'normal! ' . s:c . '|zs' . 8 . '|'",
84+
\ " normal! 08|",
85+
\ " exe 'normal! ' . s:c . '|zs' . 8 . '|'",
86+
\ " normal! 08|",
87+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
88+
\ " normal! 016|",
89+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
90+
\ " normal! 016|",
91+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
92+
\ " normal! 016|",
93+
\ " exe 'normal! ' . s:c . '|zs' . 16 . '|'",
94+
\ " normal! 016|"
95+
\ ]
96+
call assert_equal(expected, li)
97+
tabclose!
98+
99+
call delete('test_mks.out')
100+
call delete(tmpfile)
101+
let &wrap = wrap_save
102+
endfunc
103+
104+
" vim: shiftwidth=2 sts=2 expandtab

0 commit comments

Comments
 (0)