annotate src/testdir/test_autoformat_join.in @ 10940:a479b7064550 v8.0.0359

patch 8.0.0359: 'number' and 'relativenumber' are not properly tested commit https://github.com/vim/vim/commit/dc9a081712ec8c140e6d4909e9f6b03a629d32d3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 18:46:50 2017 +0100 patch 8.0.0359: 'number' and 'relativenumber' are not properly tested Problem: 'number' and 'relativenumber' are not properly tested. Solution: Add tests, change old style to new style tests. (Ozaki Kiichi, closes #1447)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 19:00:05 +0100
parents bc269cf15ccd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5848
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for setting the '[,'] marks when joining lines.
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :/^\t\t/
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 5848
diff changeset
6 0gqj:
5848
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :let a=string(getpos("'[")).'/'.string(getpos("']"))
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :/^This line/;'}-join
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :let b=string(getpos("'[")).'/'.string(getpos("']"))
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :$put ='First test: Start/End '.string(a)
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :$put ='Second test: Start/End '.string(b)
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :/^\t\t/,$wq! test.out
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 ENDTEST
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 O sodales, ludite, vos qui
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 attamen consulite per voster honur. Tua pulchra facies me fay planszer milies
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 This line.
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 Should be joined with the next line
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 and with this line
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
75f222d67cea updated for version 7.4.267
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 Results: