summaryrefslogtreecommitdiffstatshomepage
path: root/test/old/testdir/test_vimscript.vim
AgeCommit message (Collapse)AuthorFiles
2026-01-31vim-patch:9.1.2123: using NOT with a float returns a float in legacy script ↵zeertzjq1
(#37639) Problem: using NOT with a float returns a float in legacy vim script (kennypete) Solution: Return a number instead of a float (Yegappan Lakshmanan) fixes: vim/vim#19282 closes: vim/vim#19289 https://github.com/vim/vim/commit/ecc3faef61cb02f28028f27184ccd2aadcee7c24 N/A patches: vim-patch:8.2.1980: Vim9: some tests are not done at the script level vim-patch:9.1.2122: Vim9: Negating a float doesn't result in a bool Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2025-12-14vim-patch:8.2.4529: Vim9: comparing partial with function failsJan Edmund Lazo1
Problem: Vim9: comparing partial with function fails. Solution: Support this comparison. Avoid a crash. (closes vim/vim#9909) Add more test cases. https://github.com/vim/vim/commit/ed0c62e7b16b62655824df28cdd6bd75aadbb8fc Co-authored-by: Bram Moolenaar <Bram@vim.org>
2025-08-27vim-patch:9.1.1695: Need more Vim script specific tests (#35500)zeertzjq1
Problem: Need more Vim script specific tests Solution: Add more tests (Yegappan Lakshmanan). closes: vim/vim#18118 https://github.com/vim/vim/commit/e810ba5a1f6f256d2631b880641c0d7ce4d04ca5 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2025-08-08vim-patch:9.1.1607: :apple command detected as :append (#35237)zeertzjq1
Problem: :apple command detected as :append (dai475694450) Solution: Disallow to define a custom command with lower-case letter, correctly detect :insert/:change/:append ex commands (Hirohito Higashi). fixes: vim/vim#17893 closes: vim/vim#17930 https://github.com/vim/vim/commit/efd83d441ba14eaadf5df4c7c29fddebb2a24780 Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
2024-07-31vim-patch:9.1.0419: eval.c not sufficiently testedzeertzjq1
Problem: eval.c not sufficiently tested Solution: Add a few more additional tests for eval.c, (Yegappan Lakshmanan) closes: vim/vim#14799 https://github.com/vim/vim/commit/4776e64e72de2976ff90b17d236e50e2b02c5540 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2024-07-31vim-patch:9.1.0415: Some functions are not testedzeertzjq1
Problem: Some functions are not tested Solution: Add a few more tests, fix a few minor problems (Yegappan Lakshmanan) closes: vim/vim#14789 https://github.com/vim/vim/commit/fe424d13ef6e5486923f23f15bb6951e3079412e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2024-07-16vim-patch:8.2.0183: tests fail when the float feature is disabled (#29738)zeertzjq1
Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support. https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3 Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it. Co-authored-by: Bram Moolenaar <Bram@vim.org>
2024-07-05vim-patch:9.1.0529: silent! causes following try/catch to not work (#29567)zeertzjq1
Problem: silent! causes following try/catch to not work (Malcolm Rowe) Solution: consider emsg_silent in handle_did_throw() and do not abort evaluation flow for :silent! (LemonBoy) The silent! flag causes the evaluation not to be aborted in case of uncaught exceptions, adjust handle_did_throw to take this detail into account. Fixes the long-standing todo.txt item: ``` Problem that a previous silent ":throw" causes a following try/catch not to work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24) Also see vim/vim#8487 for an example. ``` fixes: vim/vim#538 closes: vim/vim#15128 https://github.com/vim/vim/commit/749ba0f6d922b3f6b54a66543c214479492b5a0e Cherry-pick Test_deeply_nested_source() from patch 8.2.5169. Co-authored-by: LemonBoy <thatlemon@gmail.com>
2023-09-09vim-patch:partial:9.0.1886: Various Typoszeertzjq1
Problem: Various Typos Solution: Fix Typos This is a collection of typo related commits. closes: vim/vim#12753 closes: vim/vim#13016 https://github.com/vim/vim/commit/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55 Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Co-authored-by: Viktor Szépe <viktor@szepe.net> Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com> Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com>
2023-08-22vim-patch:8.2.4611: typos in tests; one lua line not covered by test (#24835)zeertzjq1
Problem: Typos in tests; one lua line not covered by test. Solution: Fix typos. Add test case. (Dominique Pellé, closes vim/vim#9994) https://github.com/vim/vim/commit/81b573d7e55bd48988f298ce8e652d902e9bdeba Cherry-pick test_menu.vim change from patch 9.0.1453. N/A patch: vim-patch:8.2.3045: minor typos Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
2023-08-21vim-patch:8.2.0533: tests using term_wait() can still be flakyzeertzjq1
Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes vim/vim#5899) Halve the initial times to make tests run faster when there is no rerun. https://github.com/vim/vim/commit/6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-06-15vim-patch:9.0.1631: passing wrong variable type to option gives multiple ↵zeertzjq1
errors (#24026) Problem: Passing a wrong variable type to an option gives multiple errors. Solution: Bail out early on failure. (closes vim/vim#12504) https://github.com/vim/vim/commit/4c7cb372c17a84c8a35254d93eb37cb854cd39da
2023-06-07refactor(options): remove `getoption_T` and introduce `OptVal` (#23850)Famiu Haque1
Removes the `getoption_T` struct and also introduces the `OptVal` struct to unify the methods of getting/setting different option value types. This is the first of many PRs to reduce code duplication in the Vim option code as well as to make options easier to maintain. It also increases the flexibility and extensibility of options. Which opens the door for things like Array and Dictionary options.
2023-05-05vim-patch:9.0.0543: insufficient testing for assert and test functionszeertzjq1
Problem: Insufficient testing for assert and test functions. Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#11190) https://github.com/vim/vim/commit/e24b5e0b0f5ab015215ef2761baa98ccb1ba8606 Cherry-pick E1219 from patch 8.2.3229. Cherry-pick test_assert.vim change from patch 9.0.0491. Cherry-pick the whole Test_refcount() function and skip it. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-05-05vim-patch:8.2.4892: test failures because of changed error messageszeertzjq1
Problem: Test failures because of changed error messages. Solution: Adjust the exptected error messages. https://github.com/vim/vim/commit/ec892234788d37bfed47d8bf82dd4cae8d335ad9 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-29vim-patch:8.2.0551: not all code for options is testedzeertzjq1
Problem: Not all code for options is tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5913) https://github.com/vim/vim/commit/1363a30cef382b912bf092969e040333c5c293c6
2023-04-19vim-patch:9.0.1009: test for catch after interrupt is flaky on MS-Windowszeertzjq1
Problem: Test for catch after interrupt is flaky on MS-Windows. Solution: Mark the test as flaky. https://github.com/vim/vim/commit/72b5b0d51aa9ddf8d338a5a133a667a3c2392ae1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-19vim-patch:9.0.1008: test for swapfilelist() fails on MS-Windowszeertzjq1
Problem: Test for swapfilelist() fails on MS-Windows. Solution: Only check the tail of the path. Mark a test as flaky. https://github.com/vim/vim/commit/6cf3151f0e3839332c89367b7384c395a1185927 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-15vim-patch:8.2.4476: operator name spelled wrongzeertzjq1
Problem: Operator name spelled wrong. Solution: Change trinary to ternary. (Goc Dundar, closes vim/vim#9850) https://github.com/vim/vim/commit/e41c1dd8890d3f701253255993f4e9af2d12225c Co-authored-by: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
2023-04-15vim-patch:8.2.0634: crash with null partial and blobzeertzjq1
Problem: Crash with null partial and blob. Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan, closes vim/vim#5984) https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-14vim-patch:8.2.2138: Vim9: "exit_cb" causes Vim to exit (#23087)zeertzjq1
Problem: Vim9: "exit_cb" causes Vim to exit. Solution: Require white space after a command in Vim9 script. (closes vim/vim#7467) Also fix that Vim9 style heredoc was not always recognized. https://github.com/vim/vim/commit/b5b9480ee936ef4cd0e350c468ef8c5f42fa398b Omit EX_NONWHITE_OK, E1143, E1144: Vim9 script only. Cherry-pick test_vimscript.vim changes from patch 8.2.2141. Cherry-pick E1145 tag from Vim runtime. N/A patches for version.c: vim-patch:8.2.2140: build failure with tiny features Problem: Build failure with tiny features. Solution: Add #ifdef. https://github.com/vim/vim/commit/2a3cd3af455973d678f70303ebdd486f3478bc0d Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-14vim-patch:8.2.1512: failure after trinary expression failszeertzjq1
Problem: Failure after trinary expression fails. Solution: Restore eval_flags. (Yasuhiro Matsumoto, closes vim/vim#6776) https://github.com/vim/vim/commit/69e44552c567ff25b363ba0790ad3d43fa0397a7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-03-07test: move oldtests to test directory (#22536)dundargoc1
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'.