From 06a108f34ccfffcf21481aad7743717672f2fd56 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 10 Jul 2010 14:10:50 +0200 Subject: Improve test for joining lines. (Milan Vancura) --- src/testdir/test29.in | 51 ++++++++++++++++++++------------------------------- src/testdir/test29.ok | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+), 31 deletions(-) (limited to 'src/testdir') diff --git a/src/testdir/test29.in b/src/testdir/test29.in index de93ccc22..829961c4d 100644 --- a/src/testdir/test29.in +++ b/src/testdir/test29.in @@ -1,10 +1,18 @@ -Test for joining lines with 'joinspaces' set or not +Test for joining lines and marks in them + in compatible and nocompatible modes + and with 'joinspaces' set or not + and with 'cpoptions' flag 'j' set or not STARTTEST +:set nocompatible :set nojoinspaces +:set cpoptions-=j /firstline/ -jJjJjJjJjJjJjJjJjJjJjJjJjJjJ:set joinspaces -jJjJjJjJjJjJjJjJjJjJjJjJjJjJ:?firstline?+1,$w! test.out +j"tdGpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j +j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j joinspaces +j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j +j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j nojoinspaces compatible +j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj4Jy3l$pjdG:?firstline?+1,$w! test.out :qa! ENDTEST @@ -37,31 +45,12 @@ asdfasdf asdf asdfasdf asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf. -asdf -asdfasdf -asdf -asdfasdf -asdf -asdfasdf -asdf -asdfasdf -asdf -asdfasdf -asdf -asdfasdf -asdf -asdfasdf -asdf +zx cvn. +as dfg? +hjkl iop! +ert +zx cvn. +as dfg? +hjkl iop! +ert + diff --git a/src/testdir/test29.ok b/src/testdir/test29.ok index 076f77c98..97abf082a 100644 --- a/src/testdir/test29.ok +++ b/src/testdir/test29.ok @@ -12,6 +12,9 @@ asdfasdf asdf asdfasdf asdf asdfasdf asdf asdfasdf asdf +zx cvn. as dfg? hjkl iop! ert ernop +zx cvn. as dfg? hjkl iop! ert ernop + asdfasdf. asdf asdfasdf. asdf asdfasdf. asdf @@ -26,3 +29,21 @@ asdfasdf asdf asdfasdf asdf asdfasdf asdf asdfasdf asdf +zx cvn. as dfg? hjkl iop! ert enop +zx cvn. as dfg? hjkl iop! ert ernop + +asdfasdf. asdf +asdfasdf. asdf +asdfasdf. asdf +asdfasdf. asdf +asdfasdf. asdf +asdfasdf. asdf +asdfasdf. asdf +asdfasdf asdf +asdfasdf asdf +asdfasdf asdf +asdfasdf asdf +asdfasdf asdf +asdfasdf asdf +asdfasdf asdf +zx cvn. as dfg? hjkl iop! ert a -- cgit v1.2.1