From af23d173883f47fd02a9a380c719e4428370b484 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Tue, 7 Mar 2023 04:13:04 +0100 Subject: test: move oldtests to test directory (#22536) The new oldtest directory is in test/old/testdir. The reason for this is that many tests have hardcoded the parent directory name to be 'testdir'. --- src/nvim/testdir/test_source_utf8.vim | 61 ----------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/nvim/testdir/test_source_utf8.vim (limited to 'src/nvim/testdir/test_source_utf8.vim') diff --git a/src/nvim/testdir/test_source_utf8.vim b/src/nvim/testdir/test_source_utf8.vim deleted file mode 100644 index 66fabe0442..0000000000 --- a/src/nvim/testdir/test_source_utf8.vim +++ /dev/null @@ -1,61 +0,0 @@ -" Test the :source! command -source check.vim - -func Test_source_utf8() - " check that sourcing a script with 0x80 as second byte works - new - call setline(1, [':%s/àx/--à1234--/g', ':%s/Àx/--À1234--/g']) - write! Xscript - bwipe! - new - call setline(1, [' àx ', ' Àx ']) - source! Xscript | echo - call assert_equal(' --à1234-- ', getline(1)) - call assert_equal(' --À1234-- ', getline(2)) - bwipe! - call delete('Xscript') -endfunc - -func Test_source_latin() - " check that sourcing a latin1 script with a 0xc0 byte works - new - call setline(1, ["call feedkeys('r')", "call feedkeys('\xc0', 'xt')"]) - write! Xscript - bwipe! - new - call setline(1, ['xxx']) - source Xscript - call assert_equal("\u00c0xx", getline(1)) - bwipe! - call delete('Xscript') -endfunc - -" Test for sourcing a file with CTRL-V's at the end of the line -func Test_source_ctrl_v() - call writefile(['map __1 afirst', - \ 'map __2 asecond', - \ 'map __3 athird', - \ 'map __4 afourth', - \ 'map __5 afifth', - \ "map __1 asd\", - \ "map __2 asd\\", - \ "map __3 asd\\", - \ "map __4 asd\\\", - \ "map __5 asd\\\", - \ ], 'Xtestfile') - source Xtestfile - enew! - exe "normal __1\\__2\__3\\__4\__5\" - exe "%s/\/0/g" - call assert_equal(['sd', - \ "map __2 asd\secondsd\sd0map __5 asd0fifth"], - \ getline(1, 2)) - - enew! - call delete('Xtestfile') - unmap __1 - unmap __2 - unmap __3 - unmap __4 - unmap __5 -endfunc -- cgit