diff options
| author | Julian Mehne <github@nmehne.de> | 2014-11-21 12:11:39 +0100 | 
|---|---|---|
| committer | Julian Mehne <github@nmehne.de> | 2014-12-06 13:43:14 +0100 | 
| commit | 6cba2eef21852133e88ffdc76c03ce8ae32b3f2b (patch) | |
| tree | 4a04d1a569fe567ca3af4d91013506cf7dfc455a /src | |
| parent | 62bd20b72603c900e1dc70df9f3dac0b58733cbf (diff) | |
| download | rneovim-6cba2eef21852133e88ffdc76c03ce8ae32b3f2b.tar.gz rneovim-6cba2eef21852133e88ffdc76c03ce8ae32b3f2b.tar.bz2 rneovim-6cba2eef21852133e88ffdc76c03ce8ae32b3f2b.zip | |
Allow the rest of the old tests to pass with nocp.
test40.in, test60.in, test_breakindent.in, test_listlbr.in, test_listlbr_utf8.in:
    To avoid <tab> triggering wildmode, set wildchar to 'cp' default.
test_breakindent.ok:
    Modify expectations to avoid cpoptions+=n
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/testdir/dotest.in | 2 | ||||
| -rw-r--r-- | src/nvim/testdir/test40.in | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test60.in | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_breakindent.in | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_breakindent.ok | 8 | ||||
| -rw-r--r-- | src/nvim/testdir/test_listlbr.in | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_listlbr_utf8.in | 1 | 
7 files changed, 10 insertions, 5 deletions
| diff --git a/src/nvim/testdir/dotest.in b/src/nvim/testdir/dotest.in index a0b7a5b2f8..b495f674f8 100644 --- a/src/nvim/testdir/dotest.in +++ b/src/nvim/testdir/dotest.in @@ -1,3 +1,3 @@ -:set nocp +:set nocp nomore  :map dotest /^STARTTEST
j:set ff=unix cpo-=A
:.,/ENDTEST/-1w! Xdotest
:set ff& cpo+=A
nj0:so! Xdotest
dotest  dotest diff --git a/src/nvim/testdir/test40.in b/src/nvim/testdir/test40.in index d92a18f3d0..ced4572fb8 100644 --- a/src/nvim/testdir/test40.in +++ b/src/nvim/testdir/test40.in @@ -2,6 +2,7 @@ Test for "*Cmd" autocommands  STARTTEST  :so small.vim +:set wildchar=^E  :/^start/,$w! Xxx		" write lines below to Xxx  :au BufReadCmd XtestA 0r Xxx|$del  :e XtestA			" will read text of Xxd instead diff --git a/src/nvim/testdir/test60.in b/src/nvim/testdir/test60.in index 8835df9e0c..f0f1aecedd 100644 --- a/src/nvim/testdir/test60.in +++ b/src/nvim/testdir/test60.in @@ -2,6 +2,7 @@ Tests for the exists() and has() functions.  vim: set ft=vim ts=8 sw=2 :  STARTTEST  :so small.vim +:set wildchar=^E  :function! RunTest(str, result)      if exists(a:str) == a:result  	echo "OK" diff --git a/src/nvim/testdir/test_breakindent.in b/src/nvim/testdir/test_breakindent.in index 150c9430db..0b00c95a85 100644 --- a/src/nvim/testdir/test_breakindent.in +++ b/src/nvim/testdir/test_breakindent.in @@ -3,6 +3,7 @@ Test for breakindent  STARTTEST  :so small.vim  :if !exists("+breakindent") | e! test.ok | w! test.out | qa! | endif +:set wildchar=^E  :10new|:vsp|:vert resize 20  :put =\"\tabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP\"  :set ts=4 sw=4 sts=4 breakindent diff --git a/src/nvim/testdir/test_breakindent.ok b/src/nvim/testdir/test_breakindent.ok index d89d424fb3..a530c18fd3 100644 --- a/src/nvim/testdir/test_breakindent.ok +++ b/src/nvim/testdir/test_breakindent.ok @@ -33,13 +33,13 @@ Test 4: Simple breakindent + min width: 18   Test 7: breakindent + shift by +1 + nu + sbr=? briopt:sbr    2     ab -?        m -?        x +    ?    m +    ?    x   Test 8: breakindent + shift:1 + nu + sbr=# list briopt:sbr    2 ^Iabcd -#      opq -#      BCD +    #  opq +    #  BCD   Test 9: breakindent + shift by +1 + 'nu' + sbr=# list    2 ^Iabcd diff --git a/src/nvim/testdir/test_listlbr.in b/src/nvim/testdir/test_listlbr.in index 75b06b4cc7..36235ea915 100644 --- a/src/nvim/testdir/test_listlbr.in +++ b/src/nvim/testdir/test_listlbr.in @@ -3,6 +3,7 @@ Test for linebreak and list option (non-utf8)  STARTTEST  :so small.vim  :if !exists("+linebreak") | e! test.ok | w! test.out | qa! | endif +:set wildchar=^E  :10new|:vsp|:vert resize 20  :put =\"\tabcdef hijklmn\tpqrstuvwxyz_1060ABCDEFGHIJKLMNOP \"  :norm! zt diff --git a/src/nvim/testdir/test_listlbr_utf8.in b/src/nvim/testdir/test_listlbr_utf8.in index ba12adae05..23b3098786 100644 --- a/src/nvim/testdir/test_listlbr_utf8.in +++ b/src/nvim/testdir/test_listlbr_utf8.in @@ -3,6 +3,7 @@ Test for linebreak and list option in utf-8 mode  STARTTEST  :so small.vim  :if !exists("+linebreak") | e! test.ok | w! test.out | qa! | endif +:set wildchar=^E  :so mbyte.vim  :if &enc !=? 'utf-8'|:e! test.ok|:w! test.out|qa!|endif  :10new|:vsp|:vert resize 20 | 
