From dbc7a8d987784bc66e082ee29d6ee64e44b972f7 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 17:46:09 -0200 Subject: legacy tests: migrate test4 --- src/nvim/testdir/test4.in | 31 ------------------------------- src/nvim/testdir/test4.ok | 17 ----------------- 2 files changed, 48 deletions(-) delete mode 100644 src/nvim/testdir/test4.in delete mode 100644 src/nvim/testdir/test4.ok (limited to 'src') diff --git a/src/nvim/testdir/test4.in b/src/nvim/testdir/test4.in deleted file mode 100644 index 4aa2fe5a86..0000000000 --- a/src/nvim/testdir/test4.in +++ /dev/null @@ -1,31 +0,0 @@ -Test for autocommand that changes current buffer on BufEnter event. -Check if modelines are interpreted for the correct buffer. - -STARTTEST -:so small.vim -:set nocompatible viminfo+=nviminfo -:au BufEnter Xxx brew -/start of -:.,/end of/w! Xxx " write test file Xxx -:set ai modeline modelines=3 -:sp Xxx " split to Xxx, autocmd will do :brew -G?this is a -othis should be auto-indented -: " Append text with autoindent to this file -:au! BufEnter Xxx -:buf Xxx " go to Xxx, no autocmd anymore -G?this is a -othis should be in column 1:wq " append text without autoindent to Xxx -G:r Xxx " include Xxx in the current file -:?startstart?,$w! test.out -:qa! -ENDTEST - -startstart -start of test file Xxx -vim: set noai : - this is a test - this is a test - this is a test - this is a test -end of test file Xxx diff --git a/src/nvim/testdir/test4.ok b/src/nvim/testdir/test4.ok deleted file mode 100644 index dffecda4d2..0000000000 --- a/src/nvim/testdir/test4.ok +++ /dev/null @@ -1,17 +0,0 @@ -startstart -start of test file Xxx -vim: set noai : - this is a test - this is a test - this is a test - this is a test - this should be auto-indented -end of test file Xxx -start of test file Xxx -vim: set noai : - this is a test - this is a test - this is a test - this is a test -this should be in column 1 -end of test file Xxx -- cgit From d4f92e521c1241f45f4e4db8cfab1471e2f26aeb Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 18:55:13 -0200 Subject: legacy tests: migrate test102 --- src/nvim/testdir/test102.in | 12 ------------ src/nvim/testdir/test102.ok | 3 --- 2 files changed, 15 deletions(-) delete mode 100644 src/nvim/testdir/test102.in delete mode 100644 src/nvim/testdir/test102.ok (limited to 'src') diff --git a/src/nvim/testdir/test102.in b/src/nvim/testdir/test102.in deleted file mode 100644 index 35e9f6c2cf..0000000000 --- a/src/nvim/testdir/test102.in +++ /dev/null @@ -1,12 +0,0 @@ -Test if fnameescape is correct for special chars like ! - -STARTTEST -:%d -:let fname = 'Xspa ce' -:try | exe "w! " . fnameescape(fname) | put='Space' | endtry -:let fname = 'Xemark!' -:try | exe "w! " . fnameescape(fname) | put='ExclamationMark' | endtry -:w! test.out -:qa! -ENDTEST - diff --git a/src/nvim/testdir/test102.ok b/src/nvim/testdir/test102.ok deleted file mode 100644 index a25fea192c..0000000000 --- a/src/nvim/testdir/test102.ok +++ /dev/null @@ -1,3 +0,0 @@ - -Space -ExclamationMark -- cgit From b780e946d5d78524840d298b386506a2753543b6 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 19:06:41 -0200 Subject: legacy tests: migrate test9 --- src/nvim/testdir/test9.in | 12 ------------ src/nvim/testdir/test9.ok | 2 -- 2 files changed, 14 deletions(-) delete mode 100644 src/nvim/testdir/test9.in delete mode 100644 src/nvim/testdir/test9.ok (limited to 'src') diff --git a/src/nvim/testdir/test9.in b/src/nvim/testdir/test9.in deleted file mode 100644 index 84e17943c7..0000000000 --- a/src/nvim/testdir/test9.in +++ /dev/null @@ -1,12 +0,0 @@ -Test for Bufleave autocommand that deletes the buffer we are about to edit. - -STARTTEST -:so small.vim -:au BufLeave test9.in bwipe yy -:e yy -:/^start of/,$w! test.out " Write contents of this file -:qa! -ENDTEST - -start of test file xx -end of test file xx diff --git a/src/nvim/testdir/test9.ok b/src/nvim/testdir/test9.ok deleted file mode 100644 index cccb5f3ef2..0000000000 --- a/src/nvim/testdir/test9.ok +++ /dev/null @@ -1,2 +0,0 @@ -start of test file xx -end of test file xx -- cgit From 6c90902c7a4185710cfe0bcb3c90d6944651e000 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 19:15:31 -0200 Subject: legacy tests: migrate test22 --- src/nvim/testdir/test22.in | 13 ------------- src/nvim/testdir/test22.ok | 4 ---- 2 files changed, 17 deletions(-) delete mode 100644 src/nvim/testdir/test22.in delete mode 100644 src/nvim/testdir/test22.ok (limited to 'src') diff --git a/src/nvim/testdir/test22.in b/src/nvim/testdir/test22.in deleted file mode 100644 index f5cc046c6a..0000000000 --- a/src/nvim/testdir/test22.in +++ /dev/null @@ -1,13 +0,0 @@ -Tests for file with some lines ending in CTRL-M, some not - -STARTTEST -:set ta tx -:e! -:$-3,$w! test.out -:qa! -ENDTEST - -this lines ends in a -this one doesn't -this one does -and the last one doesn't diff --git a/src/nvim/testdir/test22.ok b/src/nvim/testdir/test22.ok deleted file mode 100644 index 38ff89eaf3..0000000000 --- a/src/nvim/testdir/test22.ok +++ /dev/null @@ -1,4 +0,0 @@ -this lines ends in a -this one doesn't -this one does -and the last one doesn't -- cgit From 481c449c72687678f32c524f7ab63ada9968cc29 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 19:53:31 -0200 Subject: legacy tests: migrate test106 --- src/nvim/testdir/test106.in | 16 ---------------- src/nvim/testdir/test106.ok | 4 ---- 2 files changed, 20 deletions(-) delete mode 100644 src/nvim/testdir/test106.in delete mode 100644 src/nvim/testdir/test106.ok (limited to 'src') diff --git a/src/nvim/testdir/test106.in b/src/nvim/testdir/test106.in deleted file mode 100644 index eb99e650ae..0000000000 --- a/src/nvim/testdir/test106.in +++ /dev/null @@ -1,16 +0,0 @@ -Tests for errorformat. vim: set ft=vim ts=8 : - -STARTTEST -:so small.vim -:if !has('quickfix') | e! test.ok | wq! test.out | endif -:set efm=%EEEE%m,%WWWW%m,%+CCCC%.%#,%-GGGG%.%# -:cgetexpr ['WWWW', 'EEEE', 'CCCC'] -:$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]'))) -:cgetexpr ['WWWW', 'GGGG', 'EEEE', 'CCCC'] -:$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]'))) -:cgetexpr ['WWWW', 'GGGG', 'ZZZZ', 'EEEE', 'CCCC', 'YYYY'] -:$put =strtrans(string(map(getqflist(), '[v:val.text, v:val.valid]'))) -:/^Results/,$wq! test.out -ENDTEST - -Results of test106: diff --git a/src/nvim/testdir/test106.ok b/src/nvim/testdir/test106.ok deleted file mode 100644 index 0a18cecf1c..0000000000 --- a/src/nvim/testdir/test106.ok +++ /dev/null @@ -1,4 +0,0 @@ -Results of test106: -[['W', 1], ['E^@CCCC', 1]] -[['W', 1], ['E^@CCCC', 1]] -[['W', 1], ['ZZZZ', 0], ['E^@CCCC', 1], ['YYYY', 0]] -- cgit From b33c92439bb329e530ece0b125b16482f7ed1ab1 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:25:40 -0200 Subject: legacy tests: migrate test18 --- src/nvim/testdir/test18.in | 16 ---------------- src/nvim/testdir/test18.ok | 4 ---- 2 files changed, 20 deletions(-) delete mode 100644 src/nvim/testdir/test18.in delete mode 100644 src/nvim/testdir/test18.ok (limited to 'src') diff --git a/src/nvim/testdir/test18.in b/src/nvim/testdir/test18.in deleted file mode 100644 index 9bfd922344..0000000000 --- a/src/nvim/testdir/test18.in +++ /dev/null @@ -1,16 +0,0 @@ -Tests for not doing smart indenting when it isn't set. - -STARTTEST -:so small.vim -:set nocin nosi ai -/some -2cc#test -:?start?,$w! test.out -:qa! -ENDTEST - -start text - some test text - test text -test text - test text diff --git a/src/nvim/testdir/test18.ok b/src/nvim/testdir/test18.ok deleted file mode 100644 index e719713785..0000000000 --- a/src/nvim/testdir/test18.ok +++ /dev/null @@ -1,4 +0,0 @@ -start text - #test -test text - test text -- cgit From 5b7d9bbd089563154e0bfbc7af31c89929cf3969 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:34:54 -0200 Subject: legacy tests: migrate test_options --- src/nvim/testdir/test_options.in | 17 ----------------- src/nvim/testdir/test_options.ok | 2 -- 2 files changed, 19 deletions(-) delete mode 100644 src/nvim/testdir/test_options.in delete mode 100644 src/nvim/testdir/test_options.ok (limited to 'src') diff --git a/src/nvim/testdir/test_options.in b/src/nvim/testdir/test_options.in deleted file mode 100644 index bf1232a223..0000000000 --- a/src/nvim/testdir/test_options.in +++ /dev/null @@ -1,17 +0,0 @@ -Test for ":options". - -STARTTEST -:so small.vim -:let caught = 'ok' -:try - :options -:catch - :let caught = v:throwpoint . "\n" . v:exception -:endtry -:buf 1 -:$put =caught -:/^result/,$w! test.out -:qa! -ENDTEST - -result diff --git a/src/nvim/testdir/test_options.ok b/src/nvim/testdir/test_options.ok deleted file mode 100644 index a2e1494a1f..0000000000 --- a/src/nvim/testdir/test_options.ok +++ /dev/null @@ -1,2 +0,0 @@ -result -ok -- cgit From 683b75d052038e33a6e7129d754ee9b7827071bf Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:42:59 -0200 Subject: legacy tests: migrate test_insertcount --- src/nvim/testdir/test_insertcount.in | 14 -------------- src/nvim/testdir/test_insertcount.ok | 3 --- 2 files changed, 17 deletions(-) delete mode 100644 src/nvim/testdir/test_insertcount.in delete mode 100644 src/nvim/testdir/test_insertcount.ok (limited to 'src') diff --git a/src/nvim/testdir/test_insertcount.in b/src/nvim/testdir/test_insertcount.in deleted file mode 100644 index 7a40573e63..0000000000 --- a/src/nvim/testdir/test_insertcount.in +++ /dev/null @@ -1,14 +0,0 @@ -Tests for repeating insert and replace. - -STARTTEST -:so small.vim -:/Second -4gro -:/^First/,$wq! test.out -:" get here when failed and in Insert mode -:.wq! test.out -ENDTEST - -First line -Second line -Last line diff --git a/src/nvim/testdir/test_insertcount.ok b/src/nvim/testdir/test_insertcount.ok deleted file mode 100644 index 57afab00ff..0000000000 --- a/src/nvim/testdir/test_insertcount.ok +++ /dev/null @@ -1,3 +0,0 @@ -First line -ooooecond line -Last line -- cgit From 79cd4a98ecc100694e2e35df7ec05971bd720830 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:50:54 -0200 Subject: legacy tests: migrate test_utf8 --- src/nvim/testdir/test_utf8.in | 18 ------------------ src/nvim/testdir/test_utf8.ok | 4 ---- 2 files changed, 22 deletions(-) delete mode 100644 src/nvim/testdir/test_utf8.in delete mode 100644 src/nvim/testdir/test_utf8.ok (limited to 'src') diff --git a/src/nvim/testdir/test_utf8.in b/src/nvim/testdir/test_utf8.in deleted file mode 100644 index e8d23c4be8..0000000000 --- a/src/nvim/testdir/test_utf8.in +++ /dev/null @@ -1,18 +0,0 @@ -Tests for Unicode manipulations - -STARTTEST -:so small.vim -:set encoding=utf-8 -:" Visual block Insert adjusts for multi-byte char -:new -:call setline(1, ["aaa", "あああ", "bbb"]) -:exe ":norm! gg0l\jjIx\" -:let r = getline(1, '$') -: -:bwipeout! -:$put=r -:call garbagecollect(1) -:/^start:/,$wq! test.out -ENDTEST - -start: diff --git a/src/nvim/testdir/test_utf8.ok b/src/nvim/testdir/test_utf8.ok deleted file mode 100644 index c5bed54856..0000000000 --- a/src/nvim/testdir/test_utf8.ok +++ /dev/null @@ -1,4 +0,0 @@ -start: -axaa -xあああ -bxbb -- cgit From 4ca353d3bdfc41250835dcaba727554a4d21243d Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 22:24:29 -0200 Subject: legacy tests: migrate test81 --- src/nvim/testdir/test81.in | 22 ---------------------- src/nvim/testdir/test81.ok | 6 ------ 2 files changed, 28 deletions(-) delete mode 100644 src/nvim/testdir/test81.in delete mode 100644 src/nvim/testdir/test81.ok (limited to 'src') diff --git a/src/nvim/testdir/test81.in b/src/nvim/testdir/test81.in deleted file mode 100644 index 82a6892a1d..0000000000 --- a/src/nvim/testdir/test81.in +++ /dev/null @@ -1,22 +0,0 @@ -Test for t movement command and 'cpo-;' setting - -STARTTEST -:set nocompatible viminfo+=nviminfo -:set cpo-=; -/firstline/ -j0tt;D -0fz;D -$Fy;D -$Ty;D:set cpo+=; -j0tt;;D -$Ty;;D:?firstline?+1,$w! test.out -:qa! -ENDTEST - -firstline -aaa two three four - zzz -yyy -bbb yee yoo four -ccc two three four -ddd yee yoo four diff --git a/src/nvim/testdir/test81.ok b/src/nvim/testdir/test81.ok deleted file mode 100644 index e9f17dc4f8..0000000000 --- a/src/nvim/testdir/test81.ok +++ /dev/null @@ -1,6 +0,0 @@ -aaa two - z -y -bbb y -ccc -ddd yee y -- cgit From b67ad4f67f3012c2f0165fc0f2874614ab2b796a Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 22:35:55 -0200 Subject: legacy tests: migrate test_changelist --- src/nvim/testdir/test_changelist.in | 22 ---------------------- src/nvim/testdir/test_changelist.ok | 1 - 2 files changed, 23 deletions(-) delete mode 100644 src/nvim/testdir/test_changelist.in delete mode 100644 src/nvim/testdir/test_changelist.ok (limited to 'src') diff --git a/src/nvim/testdir/test_changelist.in b/src/nvim/testdir/test_changelist.in deleted file mode 100644 index 6c7c4306c3..0000000000 --- a/src/nvim/testdir/test_changelist.in +++ /dev/null @@ -1,22 +0,0 @@ -Test changelist position after splitting window -Set 'undolevels' to make changelist for sourced file - -STARTTEST -:so small.vim -Gkylp:set ul=100 -Gylp:set ul=100 -gg -:vsplit -:try -: normal g; -: normal ggVGcpass -:catch -: normal ggVGcfail -:finally -: %w! test.out -:endtry -:qa! -ENDTEST - -1 -2 diff --git a/src/nvim/testdir/test_changelist.ok b/src/nvim/testdir/test_changelist.ok deleted file mode 100644 index 2ae28399f5..0000000000 --- a/src/nvim/testdir/test_changelist.ok +++ /dev/null @@ -1 +0,0 @@ -pass -- cgit From 4873171fc648d1e5fb60ca8d0cab26476f6522e9 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 23:30:24 -0200 Subject: legacy tests: migrate test_autoformat_join --- src/nvim/testdir/test_autoformat_join.in | 23 ----------------------- src/nvim/testdir/test_autoformat_join.ok | 8 -------- 2 files changed, 31 deletions(-) delete mode 100644 src/nvim/testdir/test_autoformat_join.in delete mode 100644 src/nvim/testdir/test_autoformat_join.ok (limited to 'src') diff --git a/src/nvim/testdir/test_autoformat_join.in b/src/nvim/testdir/test_autoformat_join.in deleted file mode 100644 index f1e1c868d3..0000000000 --- a/src/nvim/testdir/test_autoformat_join.in +++ /dev/null @@ -1,23 +0,0 @@ -Tests for setting the '[,'] marks when joining lines. - -STARTTEST -:so small.vim -:/^\t\t/ -0gqj -:let a=string(getpos("'[")).'/'.string(getpos("']")) -:/^This line/;'}-join -:let b=string(getpos("'[")).'/'.string(getpos("']")) -:$put ='First test: Start/End '.string(a) -:$put ='Second test: Start/End '.string(b) -:/^\t\t/,$wq! test.out -ENDTEST - - - O sodales, ludite, vos qui -attamen consulite per voster honur. Tua pulchra facies me fay planszer milies - -This line. -Should be joined with the next line -and with this line - -Results: diff --git a/src/nvim/testdir/test_autoformat_join.ok b/src/nvim/testdir/test_autoformat_join.ok deleted file mode 100644 index 3b1df79514..0000000000 --- a/src/nvim/testdir/test_autoformat_join.ok +++ /dev/null @@ -1,8 +0,0 @@ - O sodales, ludite, vos qui attamen consulite per voster honur. -Tua pulchra facies me fay planszer milies - -This line. Should be joined with the next line and with this line - -Results: -First test: Start/End '[0, 16, 1, 0]/[0, 17, 1, 0]' -Second test: Start/End '[0, 19, 11, 0]/[0, 19, 67, 0]' -- cgit From ffd5c43e84d646f72f92d5e095fe4031db33df52 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Thu, 23 Oct 2014 18:40:47 -0200 Subject: legacy tests: migrate test56 --- src/nvim/testdir/test56.in | 21 --------------------- src/nvim/testdir/test56.ok | 2 -- 2 files changed, 23 deletions(-) delete mode 100644 src/nvim/testdir/test56.in delete mode 100644 src/nvim/testdir/test56.ok (limited to 'src') diff --git a/src/nvim/testdir/test56.in b/src/nvim/testdir/test56.in deleted file mode 100644 index 311a6004ca..0000000000 --- a/src/nvim/testdir/test56.in +++ /dev/null @@ -1,21 +0,0 @@ -Test for script-local function. vim: set ft=vim : - -STARTTEST -:so small.vim -:" -:set nocp viminfo+=nviminfo -:/^start:/+1,/^end:/-1w! Xtest.vim -:source Xtest.vim -_x -:$-1,$wq! test.out -ENDTEST - -start: -fun DoLast() - call append(line('$'), "last line") -endfun -fun s:DoNothing() - call append(line('$'), "nothing line") -endfun -nnoremap _x :call DoNothing()call DoLast()delfunc DoNothingdelfunc DoLast -end: diff --git a/src/nvim/testdir/test56.ok b/src/nvim/testdir/test56.ok deleted file mode 100644 index f2b0d33c8b..0000000000 --- a/src/nvim/testdir/test56.ok +++ /dev/null @@ -1,2 +0,0 @@ -nothing line -last line -- cgit From f85051b67ec5196062be8e476f71898e60e869d1 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Fri, 24 Oct 2014 13:57:06 -0200 Subject: legacy tests: migrate test23 --- src/nvim/testdir/test23.in | 15 --------------- src/nvim/testdir/test23.ok | 2 -- 2 files changed, 17 deletions(-) delete mode 100644 src/nvim/testdir/test23.in delete mode 100644 src/nvim/testdir/test23.ok (limited to 'src') diff --git a/src/nvim/testdir/test23.in b/src/nvim/testdir/test23.in deleted file mode 100644 index 0e0e605531..0000000000 --- a/src/nvim/testdir/test23.in +++ /dev/null @@ -1,15 +0,0 @@ -Tests for complicated + argument to :edit command - -STARTTEST -:$-1w! Xfile1 -:$w! Xfile2 -:edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w -:w! test.out -:e Xfile1 -:w >> test.out -:qa! -ENDTEST - -The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar" -foo|bar -foo/bar diff --git a/src/nvim/testdir/test23.ok b/src/nvim/testdir/test23.ok deleted file mode 100644 index f1930abad6..0000000000 --- a/src/nvim/testdir/test23.ok +++ /dev/null @@ -1,2 +0,0 @@ -fooSLASHbar -fooPIPEbar -- cgit From fd503f1432cc546182bb8988c832847ac76c7b6f Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Fri, 24 Oct 2014 15:09:34 -0200 Subject: legacy tests: migrate test41 --- src/nvim/testdir/test41.in | 24 ------------------------ src/nvim/testdir/test41.ok | 3 --- 2 files changed, 27 deletions(-) delete mode 100644 src/nvim/testdir/test41.in delete mode 100644 src/nvim/testdir/test41.ok (limited to 'src') diff --git a/src/nvim/testdir/test41.in b/src/nvim/testdir/test41.in deleted file mode 100644 index 2d294cae09..0000000000 --- a/src/nvim/testdir/test41.in +++ /dev/null @@ -1,24 +0,0 @@ -Test for writing and reading a file of over 100 Kbyte - -1 line: "This is the start" -3001 lines: "This is the leader" -1 line: "This is the middle" -3001 lines: "This is the trailer" -1 line: "This is the end" - -STARTTEST -:%d -aThis is the start -This is the leader -This is the middle -This is the trailer -This is the endkY3000p2GY3000p -:w! Xtest -:%d -:e! Xtest -:.w! test.out -3003G:.w >>test.out -6005G:.w >>test.out -:qa! -ENDTEST - diff --git a/src/nvim/testdir/test41.ok b/src/nvim/testdir/test41.ok deleted file mode 100644 index 988e5f24b4..0000000000 --- a/src/nvim/testdir/test41.ok +++ /dev/null @@ -1,3 +0,0 @@ -This is the start -This is the middle -This is the end -- cgit From 34cc2b1e33918f65b151aa0a4affd047f17c8da8 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Fri, 24 Oct 2014 19:16:18 -0200 Subject: legacy tests: migrate test54 --- src/nvim/testdir/test54.in | 22 ---------------------- src/nvim/testdir/test54.ok | 1 - 2 files changed, 23 deletions(-) delete mode 100644 src/nvim/testdir/test54.in delete mode 100644 src/nvim/testdir/test54.ok (limited to 'src') diff --git a/src/nvim/testdir/test54.in b/src/nvim/testdir/test54.in deleted file mode 100644 index 9fc6537e08..0000000000 --- a/src/nvim/testdir/test54.in +++ /dev/null @@ -1,22 +0,0 @@ -Some tests for buffer-local autocommands - -STARTTEST -:so small.vim -:e xx -:if has("vms") -: !del test.out.* -: au BufLeave :!write sys$output "buffer-local autommand in %" > test.out -:else -: !rm -f test.out -: au BufLeave :!echo buffer-local autommand in %>> test.out -:endif -:e somefile " here, autocommand for xx shall write test.out -: " but autocommand shall not apply to buffer named -:bwipe xx " here, autocommand shall be auto-deleted -:e xx " nothing shall be written -:e somefile " nothing shall be written -:qa! -ENDTEST - -start of test file xx -end of test file xx diff --git a/src/nvim/testdir/test54.ok b/src/nvim/testdir/test54.ok deleted file mode 100644 index 0fd1dc915b..0000000000 --- a/src/nvim/testdir/test54.ok +++ /dev/null @@ -1 +0,0 @@ -buffer-local autommand in xx -- cgit From ac52d84f166b58d2ac06a6ff5a557fd2e5ca2c76 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 13:18:46 -0200 Subject: legacy tests: migrate test27 --- src/nvim/testdir/test27.in | 20 -------------------- src/nvim/testdir/test27.ok | 2 -- 2 files changed, 22 deletions(-) delete mode 100644 src/nvim/testdir/test27.in delete mode 100644 src/nvim/testdir/test27.ok (limited to 'src') diff --git a/src/nvim/testdir/test27.in b/src/nvim/testdir/test27.in deleted file mode 100644 index 2df16d9eff..0000000000 --- a/src/nvim/testdir/test27.in +++ /dev/null @@ -1,20 +0,0 @@ -Test for expanding file names - -STARTTEST -:!mkdir Xdir1 -:!mkdir Xdir2 -:!mkdir Xdir3 -:cd Xdir3 -:!mkdir Xdir4 -:cd .. -:w Xdir1/file -:w Xdir3/Xdir4/file -:n Xdir?/*/file -Go%:.w! test.out -:n! Xdir?/*/nofile -Go%:.w >>test.out -:e! xx -:!rm -rf Xdir1 Xdir2 Xdir3 -:qa! -ENDTEST - diff --git a/src/nvim/testdir/test27.ok b/src/nvim/testdir/test27.ok deleted file mode 100644 index c35f2438a9..0000000000 --- a/src/nvim/testdir/test27.ok +++ /dev/null @@ -1,2 +0,0 @@ -Xdir3/Xdir4/file -Xdir?/*/nofile -- cgit From 5ea94e14f0be69d293a8479d2140b196fb06c313 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 14:09:26 -0200 Subject: legacy tests: migrate test46 --- src/nvim/testdir/test46.in | 27 --------------------------- src/nvim/testdir/test46.ok | 13 ------------- 2 files changed, 40 deletions(-) delete mode 100644 src/nvim/testdir/test46.in delete mode 100644 src/nvim/testdir/test46.ok (limited to 'src') diff --git a/src/nvim/testdir/test46.in b/src/nvim/testdir/test46.in deleted file mode 100644 index 9a9db74d62..0000000000 --- a/src/nvim/testdir/test46.in +++ /dev/null @@ -1,27 +0,0 @@ -Tests for multi-line regexps with ":s". vim: set ft=vim : - -STARTTEST -:" test if replacing a line break works with a back reference -:/^1/,/^2/s/\n\(.\)/ \1/ -:" test if inserting a line break works with a back reference -:/^3/,/^4/s/\(.\)$/\r\1/ -:" test if replacing a line break with another line break works -:/^5/,/^6/s/\(\_d\{3}\)/x\1x/ -:/^1/,$w! test.out -:qa! -ENDTEST - -1 aa -bb -cc -2 dd -ee -3 ef -gh -4 ij -5 a8 -8b c9 -9d -6 e7 -77f -xxxxx diff --git a/src/nvim/testdir/test46.ok b/src/nvim/testdir/test46.ok deleted file mode 100644 index 71b353df1d..0000000000 --- a/src/nvim/testdir/test46.ok +++ /dev/null @@ -1,13 +0,0 @@ -1 aa bb cc 2 dd ee -3 e -f -g -h -4 i -j -5 ax8 -8xb cx9 -9xd -6 ex7 -7x7f -xxxxx -- cgit From afe9aa758e44cbcdc90d56bcf3d81856783f0dec Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 14:45:52 -0200 Subject: legacy tests: migrate test97 --- src/nvim/testdir/test97.in | 23 ----------------------- src/nvim/testdir/test97.ok | 8 -------- 2 files changed, 31 deletions(-) delete mode 100644 src/nvim/testdir/test97.in delete mode 100644 src/nvim/testdir/test97.ok (limited to 'src') diff --git a/src/nvim/testdir/test97.in b/src/nvim/testdir/test97.in deleted file mode 100644 index d4ff6d9295..0000000000 --- a/src/nvim/testdir/test97.in +++ /dev/null @@ -1,23 +0,0 @@ -Test whether glob()/globpath() return correct results with certain escaped -characters. - -STARTTEST -:so small.vim -:" make sure glob() doesn't use the shell -:set shell=doesnotexist -:" consistent sorting of file names -:set nofileignorecase -:e test.out -:$put =glob('Xxx\{') -:$put =glob('Xxx\$') -:w! Xxx{ -:w! Xxx\$ -:$put =glob('Xxx\{') -:$put =glob('Xxx\$') -:" -:$put =string(globpath('sautest/autoload', '*.vim')) -:$put =string(globpath('sautest/autoload', '*.vim', 0, 1)) -:w -:qa! -ENDTEST - diff --git a/src/nvim/testdir/test97.ok b/src/nvim/testdir/test97.ok deleted file mode 100644 index 32cdcbf1be..0000000000 --- a/src/nvim/testdir/test97.ok +++ /dev/null @@ -1,8 +0,0 @@ - - - -Xxx{ -Xxx$ -'sautest/autoload/Test104.vim -sautest/autoload/footest.vim' -['sautest/autoload/Test104.vim', 'sautest/autoload/footest.vim'] -- cgit From ca0a55c2a9c4df1fc67ca348c70fe0b12d7819b9 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 16:20:54 -0200 Subject: legacy tests: migrate test20 --- src/nvim/testdir/test20.in | 28 ---------------------------- src/nvim/testdir/test20.ok | 10 ---------- 2 files changed, 38 deletions(-) delete mode 100644 src/nvim/testdir/test20.in delete mode 100644 src/nvim/testdir/test20.ok (limited to 'src') diff --git a/src/nvim/testdir/test20.in b/src/nvim/testdir/test20.in deleted file mode 100644 index 662a1439f2..0000000000 --- a/src/nvim/testdir/test20.in +++ /dev/null @@ -1,28 +0,0 @@ -Tests Blockwise Visual when there are TABs before the text. -First test for undo working properly when executing commands from a register. -Also test this in an empty buffer. - -STARTTEST -:so tiny.vim -G0"ay$k@au -:new -@auY:quit! -GP -/start here$ -"by$jjlld -/456$ -jj"bP -:/56$/,$-1w! test.out -:qa! -ENDTEST - -123456 -234567 -345678 - -test text test tex start here - some text - test text -test text - -OxjAykdd diff --git a/src/nvim/testdir/test20.ok b/src/nvim/testdir/test20.ok deleted file mode 100644 index 7c50ea8db8..0000000000 --- a/src/nvim/testdir/test20.ok +++ /dev/null @@ -1,10 +0,0 @@ -123start here56 -234start here67 -345start here78 - -test text test tex rt here - somext - tesext -test text - - -- cgit From 38bef424a2cdece286d7f87dfbe76a55d76c16f7 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 17:27:20 -0200 Subject: legacy tests: migrate test28 --- src/nvim/testdir/test28.in | Bin 364 -> 0 bytes src/nvim/testdir/test28.ok | 2 -- 2 files changed, 2 deletions(-) delete mode 100644 src/nvim/testdir/test28.in delete mode 100644 src/nvim/testdir/test28.ok (limited to 'src') diff --git a/src/nvim/testdir/test28.in b/src/nvim/testdir/test28.in deleted file mode 100644 index 5542c92666..0000000000 Binary files a/src/nvim/testdir/test28.in and /dev/null differ diff --git a/src/nvim/testdir/test28.ok b/src/nvim/testdir/test28.ok deleted file mode 100644 index 911d854655..0000000000 --- a/src/nvim/testdir/test28.ok +++ /dev/null @@ -1,2 +0,0 @@ -sd -map __2 asdsecondsdsd0map __5 asd0fifth -- cgit From ef08a2c0df7f6bda1d507f41a46d1ab3069d1b8f Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 21:52:29 -0200 Subject: legacy tests: migrate test6 --- src/nvim/testdir/test6.in | 24 ------------------------ src/nvim/testdir/test6.ok | 18 ------------------ 2 files changed, 42 deletions(-) delete mode 100644 src/nvim/testdir/test6.in delete mode 100644 src/nvim/testdir/test6.ok (limited to 'src') diff --git a/src/nvim/testdir/test6.in b/src/nvim/testdir/test6.in deleted file mode 100644 index 1ebbe2fa51..0000000000 --- a/src/nvim/testdir/test6.in +++ /dev/null @@ -1,24 +0,0 @@ -Test for autocommand that redefines the argument list, when doing ":all". - -STARTTEST -:so small.vim -:au BufReadPost Xxx2 next Xxx2 Xxx1 -/^start of -A1:.,/end of/w! Xxx1 " write test file Xxx1 -$r2:.,/end of/w! Xxx2 " write test file Xxx2 -$r3:.,/end of/w! Xxx3 " write test file Xxx3 -:next! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1 -:all " open window for all args -:w! test.out " Write contents of Xxx1 -:w >>test.out " Append contents of last window (Xxx1) -:rew " should now be in Xxx2 -:w >>test.out " Append contents of Xxx2 -:qa! -ENDTEST - -start of test file Xxx - this is a test - this is a test - this is a test - this is a test -end of test file Xxx diff --git a/src/nvim/testdir/test6.ok b/src/nvim/testdir/test6.ok deleted file mode 100644 index b6b0c93e4e..0000000000 --- a/src/nvim/testdir/test6.ok +++ /dev/null @@ -1,18 +0,0 @@ -start of test file Xxx1 - this is a test - this is a test - this is a test - this is a test -end of test file Xxx -start of test file Xxx1 - this is a test - this is a test - this is a test - this is a test -end of test file Xxx -start of test file Xxx2 - this is a test - this is a test - this is a test - this is a test -end of test file Xxx -- cgit From 2d8d4285e4bd518eee743dbb204517c5e863d9b7 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Mon, 27 Oct 2014 22:47:58 -0200 Subject: legacy tests: migrate test7 --- src/nvim/testdir/test7.in | 26 -------------------------- src/nvim/testdir/test7.ok | 12 ------------ 2 files changed, 38 deletions(-) delete mode 100644 src/nvim/testdir/test7.in delete mode 100644 src/nvim/testdir/test7.ok (limited to 'src') diff --git a/src/nvim/testdir/test7.in b/src/nvim/testdir/test7.in deleted file mode 100644 index b9cc0585f6..0000000000 --- a/src/nvim/testdir/test7.in +++ /dev/null @@ -1,26 +0,0 @@ -Test for autocommand that changes the buffer list, when doing ":ball". - -STARTTEST -:so small.vim -/^start of -A1:.,/end of/w! Xxx1 " write test file Xxx1 -:sp Xxx1 -:close -$r2:.,/end of/w! Xxx2 " write test file Xxx2 -:sp Xxx2 -:close -$r3:.,/end of/w! Xxx3 " write test file Xxx3 -:sp Xxx3 -:close -:au BufReadPost Xxx2 bwipe -$r4:ball " open window for all args, close Xxx2 -:.,$w! test.out " Write contents of this file -:w >>test.out " Append contents of second window (Xxx1) -:/^start of/,$w >>test.out " Append contents of last window (this file) -:qa! -ENDTEST - -start of test file Xxx - this is a test - this is a test -end of test file Xxx diff --git a/src/nvim/testdir/test7.ok b/src/nvim/testdir/test7.ok deleted file mode 100644 index a0d1ff94a3..0000000000 --- a/src/nvim/testdir/test7.ok +++ /dev/null @@ -1,12 +0,0 @@ -start of test file Xxx4 - this is a test - this is a test -end of test file Xxx -start of test file Xxx1 - this is a test - this is a test -end of test file Xxx -start of test file Xxx4 - this is a test - this is a test -end of test file Xxx -- cgit