summaryrefslogtreecommitdiffstatshomepage
path: root/test/old/testdir/test_expr.vim
AgeCommit message (Collapse)AuthorFiles
2026-01-20vim-patch:9.1.1325: tests: not checking error numbers properlyzeertzjq1
Problem: tests: not checking error numbers properly. Solution: Add a trailing comma to avoid matching a different error number with the same prefix (zeertzjq) closes: vim/vim#17159 https://github.com/vim/vim/commit/67fe77d2724ec2041baef73edf20e828b43adcd2
2025-11-29vim-patch:9.0.0113: has() is not strict about parsing the patch versionJan Edmund Lazo1
Problem: has() is not strict about parsing the patch version. Solution: Check the version more strictly. (Ken Takata, closes vim/vim#10752) https://github.com/vim/vim/commit/d90f91fe3075bb51668ed926182b2163da9df001 Co-authored-by: K.Takata <kentkt@csc.jp>
2025-11-29vim-patch:9.0.0057: has('patch-xxx') returns trueJan Edmund Lazo1
Problem: has('patch-xxx') returns true. Solution: Check for digit. (closes vim/vim#10751) https://github.com/vim/vim/commit/5154a8880034b7bb94186d37bcecc6ee1a96f732 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2025-08-30vim-patch:partial:9.1.1708: tests: various tests can be improved (#35548)zeertzjq1
Problem: tests: various tests can be improved Solution: Use string interpolation to concatenate strings in test_winfixbuf, check for specific errors in assert_fails() (Yegappan Lakshmanan) closes: vim/vim#18151 https://github.com/vim/vim/commit/97ea879b9bd80baf2a64378eedc06a9610105dad Cherry-pick Test_file_perm.vim changes from patch 9.0.{0363,0611}. Skip Test_colornames_assignment_and_unassignment(). Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2024-11-04feat(options)!: disallow setting hidden options #28400Famiu Haque1
Problem: There are three different ways of marking an option as hidden, `enable_if = false`, `hidden = true` and `immutable = true`. These also have different behaviors. Options hidden with `enable_if = false` can't have their value fetched using Vim script or the API, but options hidden with `hidden = true` or `immutable = true` can. On the other hand, options with `hidden = true` do not error when trying to set their value, but options with `immutable = true` do. Solution: Remove `enable_if = false`, remove the `hidden` property for options, and use `immutable = true` to mark an option as hidden instead. Also make hidden option variable pointers always point to the default value, which allows fetching the value of every hidden option using Vim script and the API. This does also mean that trying to set a hidden option will now give an error instead of just being ignored.
2024-10-14vim-patch:a420547: runtime(misc): Use consistent "Vim script" spelling (#30805)zeertzjq1
References: https://groups.google.com/g/vim_dev/c/3Z5yM8KER2w/m/wAqws0QSEAAJ closes: vim/vim#15863 https://github.com/vim/vim/commit/a4205471adae39c80fb7f151a4f33051fcb80001 Co-authored-by: h-east <h.east.727@gmail.com>
2024-04-16vim-patch:9.1.0335: String interpolation fails for List type (#28364)zeertzjq1
Problem: String interpolation fails for List type Solution: use implicit string(list) for string interpolation and :put = (Yegappan Lakshmanan) related: vim/vim#14529 closes: vim/vim#14556 https://github.com/vim/vim/commit/bce51d9005dd1c5bc002acbac2e12b649abcb013 Cherry-pick eval_to_string_eap() from patch 8.2.1914. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2024-04-15vim-patch:9.1.0329: String interpolation fails for Dict type (#28335)zeertzjq1
Problem: String interpolation fails for Dict type Solution: Support Dict data type properly, also support :put =Dict (without having to convert it to string() first) (Yegappan Lakshmanan) fixes: vim/vim#14529 closes: vim/vim#14541 https://github.com/vim/vim/commit/f01493c55062c01b1cdf9b1e946577f4d1bdddf3 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-08-17vim-patch:8.2.3908: cannot use a script-local function for 'foldtext'zeertzjq1
Problem: Cannot use a script-local function for 'foldtext'. Solution: Expand "s:" and "<SID>". (Yegappan Lakshmanan, closes vim/vim#9411) https://github.com/vim/vim/commit/27708e6c7b6f444fd599f3dc5015336b002b874d Cherry-pick test_filter_map.vim change from patch 8.2.3871. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-08-15vim-patch:9.0.1704: Cannot use positional arguments for printf() (#24719)zeertzjq1
Problem: Cannot use positional arguments for printf() Solution: Support positional arguments in string formatting closes: vim/vim#12140 https://github.com/vim/vim/commit/0c6181fec4c362eb9682d5af583341eb20cb1af5 Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
2023-05-08vim-patch:9.0.1524: passing -1 for bool is not always rejectedzeertzjq1
Problem: Passing -1 for bool is not always rejected. Solution: Check for error in a better way. (closes vim/vim#12358) https://github.com/vim/vim/commit/8cf51376b842e0060edf08bd2e5bd9933c552ecf
2023-05-08vim-patch:9.0.1522: some functions give two error messageszeertzjq1
Problem: Some functions give two error messages. Solution: Do not give a second error message. (closes vim/vim#12352) https://github.com/vim/vim/commit/e4098457ab9c94225b1b0e3c5e06b82b75587971 It seems that tv_get_bool() is actually not exactly the same as tv_get_number(), so change it to a function instead. Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-30vim-patch:9.0.1500: The falsy operator is not tested properly (#23407)zeertzjq1
Problem: The falsy operator is not tested properly. Solution: Add a few more test cases. (closes vim/vim#12319) https://github.com/vim/vim/commit/58a44751cec55be1ace0d4be5367dc19bc56be5d
2023-04-28vim-patch:9.0.1492: using uninitialized memory when argument is missing (#23351)zeertzjq1
Problem: Using uninitialized memory when argument is missing. Solution: Check there are sufficient arguments before the base. (closes vim/vim#12302) https://github.com/vim/vim/commit/b7f2270bab102d68f83a6300699b7f98efad81f2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-25vim-patch:9.0.0335: checks for Dictionary argument often give a vague error ↵zeertzjq1
(#23309) Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes vim/vim#11009) https://github.com/vim/vim/commit/04c4c5746e15884768d2cb41370c3276a196cd4c Cherry-pick removal of E922 from docs from patch 9.0.1403. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-04-15vim-patch:8.2.4930: interpolated string expression requires escapingzeertzjq1
Problem: Interpolated string expression requires escaping. Solution: Do not require escaping in the expression. https://github.com/vim/vim/commit/0abc2871c105882ed1c1effb9a7757fad8a395bd Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-15vim-patch:8.2.4883: string interpolation only works in heredoczeertzjq1
Problem: String interpolation only works in heredoc. Solution: Support interpolated strings. Use syntax for heredoc consistent with strings, similar to C#. (closes vim/vim#10327) https://github.com/vim/vim/commit/2eaef106e4a7fc9dc74a7e672b5f550ec1f9786e Cherry-pick Test_Debugger_breakadd_expr() from Vim. Co-authored-by: LemonBoy <thatlemon@gmail.com>
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.4373: expression test failszeertzjq1
Problem: Expression test fails. Solution: Make the test work with latest Vim9 syntax. https://github.com/vim/vim/commit/c87aa34dfd68e95e4b1aac96d2274fcd672753ac Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-15vim-patch:8.2.4361: Vim9: some tests failzeertzjq1
Problem: Vim9: some tests fail. Solution: Fix the tests, mostly by removing "s:". https://github.com/vim/vim/commit/62b191c38758c835a577ef091a803b6dd4cd4f49 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-15vim-patch:8.2.3856: Vim9: not enough testszeertzjq1
Problem: Vim9: not enough tests. Solution: Run more expression tests also with Vim9. Fix an uncovered problem. https://github.com/vim/vim/commit/fea43e44c008a7ca73b506ddab0f47b63b5d2126 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-15vim-patch:8.2.1378: cannot put space between function name and parenzeertzjq1
Problem: Cannot put space between function name and paren. Solution: Allow this for backwards compatibility. https://github.com/vim/vim/commit/bbd3e3c357487f7a5bdc704a819f63a7dd0dd66e This fixes a regression from patch 8.2.1365, which isn't ported yet. Co-authored-by: Bram Moolenaar <Bram@vim.org>
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-15vim-patch:8.2.0633: crash when using null partial in filter()zeertzjq1
Problem: Crash when using null partial in filter(). Solution: Fix crash. Add more tests. (Yegappan Lakshmanan, closes vim/vim#5976) https://github.com/vim/vim/commit/9d8d0b5c644ea53364d04403740b3f23e57c1497 Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-14vim-patch:8.2.1798: Vim9: trinary operator condition is too permissivezeertzjq1
Problem: Vim9: trinary operator condition is too permissive. Solution: Use tv_get_bool_chk(). https://github.com/vim/vim/commit/1310660557470a669cc64b359e20666b116e5dbd Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-04-14vim-patch:8.2.1794: no falsy Coalescing operatorzeertzjq1
Problem: No falsy Coalescing operator. Solution: Add the "??" operator. Fix mistake with function argument count. https://github.com/vim/vim/commit/92f26c256e06277ff2ec4ce7adea1eb58c85abe0 Cherry-pick tv2bool() into eval/typval.c. Cherry-pick *??* tag from Vim runtime. Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-03-09vim-patch:8.2.1067: expression "!expr->func()" does not work (#22585)zeertzjq1
Problem: Expression "!expr->func()" does not work. Solution: Apply plus and minus earlier. (closes vim/vim#6348) https://github.com/vim/vim/commit/0b1cd52ff6bf690388f892be686a91721a082e55 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'.