diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-02-17 08:14:24 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-17 08:34:19 +0800 |
| commit | dea311b33d7be6c76ba2a48e604a112ae1dc61d6 (patch) | |
| tree | bd59b0a4fc7f2397b3a9d567871a96aaead75e04 /src/nvim/testdir/test_normal.vim | |
| parent | 0326ef2f41a5c18c6cfd2c1b1dda95f7b309a5c4 (diff) | |
| download | rneovim-dea311b33d7be6c76ba2a48e604a112ae1dc61d6.tar.gz rneovim-dea311b33d7be6c76ba2a48e604a112ae1dc61d6.tar.bz2 rneovim-dea311b33d7be6c76ba2a48e604a112ae1dc61d6.zip | |
test(old): run some part of 'cpoptions' tests
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 100 |
1 files changed, 51 insertions, 49 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index 2aaa1ff830..390e179f13 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -2254,61 +2254,63 @@ func Test_normal29_brace() " set cpo+={ " 1 " norm! 0d2} - " let expected =<< trim [DATA] - " { - " This is no paragraph - " unless the '{' is set - " in 'cpoptions' - " } - " .IP - " The nroff macros IP separates a paragraph - " That means, it must be a '.' - " followed by IP - " .LPIt does not matter, if afterwards some - " more characters follow. - " .SHAlso section boundaries from the nroff - " macros terminate a paragraph. That means - " a character like this: - " .NH - " End of text here - " - " [DATA] + + let expected =<< trim [DATA] + { + This is no paragraph + unless the '{' is set + in 'cpoptions' + } + .IP + The nroff macros IP separates a paragraph + That means, it must be a '.' + followed by IP + .LPIt does not matter, if afterwards some + more characters follow. + .SHAlso section boundaries from the nroff + macros terminate a paragraph. That means + a character like this: + .NH + End of text here + + [DATA] " call assert_equal(expected, getline(1, '$')) - " + " $ " norm! d} - " let expected =<< trim [DATA] - " { - " This is no paragraph - " unless the '{' is set - " in 'cpoptions' - " } - " .IP - " The nroff macros IP separates a paragraph - " That means, it must be a '.' - " followed by IP - " .LPIt does not matter, if afterwards some - " more characters follow. - " .SHAlso section boundaries from the nroff - " macros terminate a paragraph. That means - " a character like this: - " .NH - " End of text here - " - " [DATA] + + let expected =<< trim [DATA] + { + This is no paragraph + unless the '{' is set + in 'cpoptions' + } + .IP + The nroff macros IP separates a paragraph + That means, it must be a '.' + followed by IP + .LPIt does not matter, if afterwards some + more characters follow. + .SHAlso section boundaries from the nroff + macros terminate a paragraph. That means + a character like this: + .NH + End of text here + + [DATA] " call assert_equal(expected, getline(1, '$')) - " + " norm! gg} " norm! d5} - " - " let expected =<< trim [DATA] - " { - " This is no paragraph - " unless the '{' is set - " in 'cpoptions' - " } - - " [DATA] + + let expected =<< trim [DATA] + { + This is no paragraph + unless the '{' is set + in 'cpoptions' + } + + [DATA] " call assert_equal(expected, getline(1, '$')) " Jumping to a fold should open the fold |