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_termcodes.vim | 63 ------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/nvim/testdir/test_termcodes.vim (limited to 'src/nvim/testdir/test_termcodes.vim') diff --git a/src/nvim/testdir/test_termcodes.vim b/src/nvim/testdir/test_termcodes.vim deleted file mode 100644 index 99bc2d1d37..0000000000 --- a/src/nvim/testdir/test_termcodes.vim +++ /dev/null @@ -1,63 +0,0 @@ - -" Test for translation of special key codes (, , etc.) -func Test_Keycode_Translation() - let keycodes = [ - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""], - \ ["", ""]] - for [k1, k2] in keycodes - exe "nnoremap " .. k1 .. " 2wx" - call assert_true(maparg(k1, 'n', 0, 1).lhs == k2) - exe "nunmap " .. k1 - endfor -endfunc - -" Test for terminal keycodes that doesn't have termcap entries -func Test_special_term_keycodes() - new - " Test for , and - " send keycode - call feedkeys("i\\x80\xfd\x3f\n", 'xt') - " send bitmap keycode - call feedkeys("i\\x80\xfc\x2\x80\xfd\x3f\n", 'xt') - call feedkeys("i\\x80\xfc\x4\x80\xfd\x3f\n", 'xt') - " Test for , and - call feedkeys("i\\x80\xfd\x3d\n", 'xt') - call feedkeys("i\\x80\xfc\x2\x80\xfd\x3d\n", 'xt') - call feedkeys("i\\x80\xfc\x4\x80\xfd\x3d\n", 'xt') - " Test for , and - call feedkeys("i\\x80\xfd\x40\n", 'xt') - call feedkeys("i\\x80\xfc\x2\x80\xfd\x40\n", 'xt') - call feedkeys("i\\x80\xfc\x4\x80\xfd\x40\n", 'xt') - " Test for , and - call feedkeys("i\\x80\xfd\x3e\n", 'xt') - call feedkeys("i\\x80\xfc\x2\x80\xfd\x3e\n", 'xt') - call feedkeys("i\\x80\xfc\x4\x80\xfd\x3e\n", 'xt') - " Test for , , and - call feedkeys("i\\x80\xfd\x41\n", 'xt') - call feedkeys("i\\x80\xfd\x42\n", 'xt') - call feedkeys("i\\x80\xfd\x43\n", 'xt') - call feedkeys("i\\x80\xfd\x44\n", 'xt') - call assert_equal(['', '', '', - \ '', '', '', - \ '', '', '', - \ '', '', '', - \ '', '', '', '', ''], getline(1, '$')) - bw! -endfunc - - -" vim: shiftwidth=2 sts=2 expandtab -- cgit