forked from aniani/vim
updated for version 7.3.838
Problem: Insufficient testing for mksession. Solution: Add tests. (mostly by Roland Eggner)
This commit is contained in:
@@ -10839,7 +10839,7 @@ put_view(fd, wp, add_edit, flagp, current_arg_idx)
|
|||||||
(long)wp->w_virtcol + 1) < 0
|
(long)wp->w_virtcol + 1) < 0
|
||||||
|| put_eol(fd) == FAIL
|
|| put_eol(fd) == FAIL
|
||||||
|| put_line(fd, "else") == FAIL
|
|| put_line(fd, "else") == FAIL
|
||||||
|| fprintf(fd, " normal! %d|", wp->w_virtcol + 1) < 0
|
|| fprintf(fd, " normal! 0%d|", wp->w_virtcol + 1) < 0
|
||||||
|| put_eol(fd) == FAIL
|
|| put_eol(fd) == FAIL
|
||||||
|| put_line(fd, "endif") == FAIL)
|
|| put_line(fd, "endif") == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@@ -32,7 +32,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|||||||
test71.out test72.out test73.out test74.out test75.out \
|
test71.out test72.out test73.out test74.out test75.out \
|
||||||
test76.out test77.out test78.out test79.out test80.out \
|
test76.out test77.out test78.out test79.out test80.out \
|
||||||
test81.out test82.out test83.out test84.out test88.out \
|
test81.out test82.out test83.out test84.out test88.out \
|
||||||
test89.out test90.out test91.out
|
test89.out test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out
|
||||||
|
|
||||||
@@ -140,3 +140,5 @@ test88.out: test88.in
|
|||||||
test89.out: test89.in
|
test89.out: test89.in
|
||||||
test90.out: test90.in
|
test90.out: test90.in
|
||||||
test91.out: test91.in
|
test91.out: test91.in
|
||||||
|
test92.out: test92.in
|
||||||
|
test93.out: test93.in
|
||||||
|
@@ -31,7 +31,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
|||||||
test74.out test75.out test76.out test77.out test78.out \
|
test74.out test75.out test76.out test77.out test78.out \
|
||||||
test79.out test80.out test81.out test82.out test83.out \
|
test79.out test80.out test81.out test82.out test83.out \
|
||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out
|
test89.out test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
SCRIPTS32 = test50.out test70.out
|
SCRIPTS32 = test50.out test70.out
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
|||||||
test74.out test75.out test76.out test77.out test78.out \
|
test74.out test75.out test76.out test77.out test78.out \
|
||||||
test79.out test80.out test81.out test82.out test83.out \
|
test79.out test80.out test81.out test82.out test83.out \
|
||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out
|
test89.out test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
SCRIPTS32 = test50.out test70.out
|
SCRIPTS32 = test50.out test70.out
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|||||||
test71.out test72.out test73.out test74.out test75.out \
|
test71.out test72.out test73.out test74.out test75.out \
|
||||||
test76.out test77.out test78.out test79.out test80.out \
|
test76.out test77.out test78.out test79.out test80.out \
|
||||||
test81.out test82.out test83.out test84.out test88.out \
|
test81.out test82.out test83.out test84.out test88.out \
|
||||||
test89.out test90.out test91.out
|
test89.out test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||||
#
|
#
|
||||||
# Last change: 2013 Feb 20
|
# Last change: 2013-02-21
|
||||||
#
|
#
|
||||||
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
||||||
# Edit the lines in the Configuration section below to select.
|
# Edit the lines in the Configuration section below to select.
|
||||||
@@ -77,7 +77,7 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
|||||||
test71.out test72.out test74.out test75.out test76.out \
|
test71.out test72.out test74.out test75.out test76.out \
|
||||||
test77.out test78.out test79.out test80.out test81.out \
|
test77.out test78.out test79.out test80.out test81.out \
|
||||||
test82.out test83.out test84.out test88.out test89.out \
|
test82.out test83.out test84.out test88.out test89.out \
|
||||||
test90.out test91.out
|
test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
# Known problems:
|
# Known problems:
|
||||||
# Test 30: a problem around mac format - unknown reason
|
# Test 30: a problem around mac format - unknown reason
|
||||||
|
@@ -28,7 +28,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
|||||||
test74.out test75.out test76.out test77.out test78.out \
|
test74.out test75.out test76.out test77.out test78.out \
|
||||||
test79.out test80.out test81.out test82.out test83.out \
|
test79.out test80.out test81.out test82.out test83.out \
|
||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out
|
test89.out test90.out test91.out test92.out test93.out
|
||||||
|
|
||||||
SCRIPTS_GUI = test16.out
|
SCRIPTS_GUI = test16.out
|
||||||
|
|
||||||
|
48
src/testdir/test92.in
Normal file
48
src/testdir/test92.in
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
vim: set ft=vim fenc=utf-8:
|
||||||
|
|
||||||
|
Tests if :mksession saves cursor columns correctly in presence of tab and
|
||||||
|
multibyte characters when fileencoding=utf-8.
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:so mbyte.vim
|
||||||
|
:if !has('mksession')
|
||||||
|
: e! test.ok
|
||||||
|
: wq! test.out
|
||||||
|
:endif
|
||||||
|
:set sessionoptions=buffers splitbelow fileencoding=utf-8
|
||||||
|
/^start:
|
||||||
|
:vsplit
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j8|:split
|
||||||
|
j8|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:wincmd l
|
||||||
|
/^start:
|
||||||
|
:set nowrap
|
||||||
|
j16|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j08|3zl:split
|
||||||
|
j08|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
:mksession! test.out
|
||||||
|
:new test.out
|
||||||
|
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
||||||
|
:w
|
||||||
|
:qa!
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
start:
|
||||||
|
no multibyte chAracter
|
||||||
|
one leaDing tab
|
||||||
|
four leadinG spaces
|
||||||
|
two consecutive tabs
|
||||||
|
two tabs in one line
|
||||||
|
one … multibyteCharacter
|
||||||
|
a “b” two multiByte characters
|
||||||
|
“c”1€ three mulTibyte characters
|
26
src/testdir/test92.ok
Normal file
26
src/testdir/test92.ok
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 08|
|
||||||
|
normal! 08|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 8 . '|'
|
||||||
|
normal! 08|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 8 . '|'
|
||||||
|
normal! 08|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
48
src/testdir/test93.in
Normal file
48
src/testdir/test93.in
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
vim: set ft=vim fenc=latin1:
|
||||||
|
|
||||||
|
Tests if :mksession saves cursor columns correctly in presence of tab and
|
||||||
|
multibyte characters when fileencoding=latin1.
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:so mbyte.vim
|
||||||
|
:if !has('mksession')
|
||||||
|
: e! test.ok
|
||||||
|
: wq! test.out
|
||||||
|
:endif
|
||||||
|
:set sessionoptions=buffers splitbelow fileencoding=latin1
|
||||||
|
/^start:
|
||||||
|
:vsplit
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j8|:split
|
||||||
|
j8|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:split
|
||||||
|
j16|:wincmd l
|
||||||
|
/^start:
|
||||||
|
:set nowrap
|
||||||
|
j16|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j08|3zl:split
|
||||||
|
j08|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
j016|3zl:split
|
||||||
|
:mksession! test.out
|
||||||
|
:new test.out
|
||||||
|
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
||||||
|
:w
|
||||||
|
:qa!
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
start:
|
||||||
|
no multibyte chAracter
|
||||||
|
one leaDing tab
|
||||||
|
four leadinG spaces
|
||||||
|
two consecutive tabs
|
||||||
|
two tabs in one line
|
||||||
|
one <20> multibyteCharacter
|
||||||
|
a<EFBFBD> <20> two multiByte characters
|
||||||
|
A<EFBFBD><EFBFBD><EFBFBD> three mulTibyte characters
|
26
src/testdir/test93.ok
Normal file
26
src/testdir/test93.ok
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 08|
|
||||||
|
normal! 08|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 8 . '|'
|
||||||
|
normal! 08|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 8 . '|'
|
||||||
|
normal! 08|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
||||||
|
exe 'normal! ' . s:c . '|zs' . 16 . '|'
|
||||||
|
normal! 016|
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
838,
|
||||||
/**/
|
/**/
|
||||||
837,
|
837,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user