diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-03 22:55:05 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-03 22:55:05 +0100 |
commit | 6239492d9c5041a4d26af4754ee5d84b459807c3 (patch) | |
tree | 6152d92cee9dd7d997568f03da98f1a8a5365796 /src | |
parent | 54293b73d4bef32eca7f5d6b3a3f177379940a49 (diff) | |
parent | b4c172d612a3c8d936ed8e33c2ab4c5f7cbec39a (diff) | |
download | rneovim-6239492d9c5041a4d26af4754ee5d84b459807c3.tar.gz rneovim-6239492d9c5041a4d26af4754ee5d84b459807c3.tar.bz2 rneovim-6239492d9c5041a4d26af4754ee5d84b459807c3.zip |
Merge #2990 'tests: Migrate legacy test 69.'
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/Makefile | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test69.in | 191 | ||||
-rw-r--r-- | src/nvim/testdir/test69.ok | 166 |
3 files changed, 0 insertions, 358 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index 814c0bc3cb..13b7da43dd 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -22,7 +22,6 @@ SCRIPTS := \ test52.out \ test53.out \ test64.out \ - test69.out \ test73.out \ test79.out \ test_marks.out \ diff --git a/src/nvim/testdir/test69.in b/src/nvim/testdir/test69.in deleted file mode 100644 index 39b360fc81..0000000000 --- a/src/nvim/testdir/test69.in +++ /dev/null @@ -1,191 +0,0 @@ -Test for multi-byte text formatting. -Also test, that 'mps' with multibyte chars works. -And test "ra" on multi-byte characters. -Also test byteidx() and byteidxcomp() - -STARTTEST -: -ENDTEST - -Results of test69: - -STARTTEST -/^{/+1 -:set tw=2 fo=t -gqgqjgqgqo -XYZ -abc XYZ -ENDTEST - -{ -XYZ -abc XYZ -} - -STARTTEST -/^{/+1 -:set tw=1 fo=tm -gqgqjgqgqjgqgqjgqgqjgqgqo -X -Xa -X a -XY -X Y -ENDTEST - -{ -X -Xa -X a -XY -X Y -} - -STARTTEST -/^{/+1 -:set tw=2 fo=tm -gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo -X -Xa -X a -XY -X Y -aX -abX -abcX -abX c -abXY -ENDTEST - -{ -X -Xa -X a -XY -X Y -aX -abX -abcX -abX c -abXY -} - -STARTTEST -/^{/+1 -:set ai tw=2 fo=tm -gqgqjgqgqo -X -Xa -ENDTEST - -{ - X - Xa -} - -STARTTEST -/^{/+1 -:set noai tw=2 fo=tm -gqgqjgqgqo - X - Xa -ENDTEST - -{ - X - Xa -} - -STARTTEST -/^{/+1 -:set tw=2 fo=cqm comments=n:X -gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo -X -Xa -XaY -XY -XYZ -X Y -X YZ -XX -XXa -XXY -ENDTEST - -{ -X -Xa -XaY -XY -XYZ -X Y -X YZ -XX -XXa -XXY -} - -STARTTEST -/^{/+1 -:set tw=2 fo=tm -RXa -ENDTEST - -{ - -} - -STARTTEST -/^{/+1 -:set mps+=u2018:u2019 -d% -ENDTEST - -{ -‘ two three ’ four -} -STARTTEST -/^ra test -jVjra -ENDTEST - -ra test -abba -aab - -STARTTEST -:set whichwrap+=h -/^x -dh -:set whichwrap-=h -ENDTEST - -á -x - -STARTTEST -:let a = '.é.' " one char of two bytes -:let b = '.é.' " normal e with composing char -/^byteidx -:put =string([byteidx(a, 0), byteidx(a, 1), byteidx(a, 2), byteidx(a, 3), byteidx(a, 4)]) -:put =string([byteidx(b, 0), byteidx(b, 1), byteidx(b, 2), byteidx(b, 3), byteidx(b, 4)]) -/^byteidxcomp -:put =string([byteidxcomp(a, 0), byteidxcomp(a, 1), byteidxcomp(a, 2), byteidxcomp(a, 3), byteidxcomp(a, 4)]) -:let b = '.é.' -:put =string([byteidxcomp(b, 0), byteidxcomp(b, 1), byteidxcomp(b, 2), byteidxcomp(b, 3), byteidxcomp(b, 4), byteidxcomp(b, 5)]) -ENDTEST - -byteidx -byteidxcomp - -STARTTEST -/^substitute -:let y = substitute('123', '\zs', 'a', 'g') | put =y -ENDTEST - -substitute - -STARTTEST -:g/^STARTTEST/.,/^ENDTEST/d -:1;/^Results/,$wq! test.out -ENDTEST diff --git a/src/nvim/testdir/test69.ok b/src/nvim/testdir/test69.ok deleted file mode 100644 index af8befb0c7..0000000000 --- a/src/nvim/testdir/test69.ok +++ /dev/null @@ -1,166 +0,0 @@ -Results of test69: - - -{ -XYZ -abc -XYZ - -XYZ -abc -XYZ -} - - -{ -X -X -a -X -a -X -Y -X -Y - -X -X -a -X -a -X -Y -X -Y -} - - -{ -X -X -a -X -a -X -Y -X -Y -a -X -ab -X -abc -X -ab -X -c -ab -X -Y - -X -X -a -X -a -X -Y -X -Y -a -X -ab -X -abc -X -ab -X -c -ab -X -Y -} - - -{ - X - X - a - - X - X - a -} - - -{ - X - X -a - - X - X -a -} - - -{ -X -Xa -Xa -XY -XY -XY -XZ -X Y -X Y -X Z -XX -XXa -XXY - -X -Xa -Xa -XY -XY -XY -XZ -X Y -X Y -X Z -XX -XXa -XXY -} - - -{ -X -a -} - - -{ - four -} - -ra test -aaaa -aaa - - -áx - - -byteidx -[0, 1, 3, 4, -1] -[0, 1, 4, 5, -1] -byteidxcomp -[0, 1, 3, 4, -1] -[0, 1, 2, 4, 5, -1] - - -substitute -a1a2a3a - |