summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_expr.vim
AgeCommit message (Collapse)Author
11 dayspatch 9.1.0419: eval.c not sufficiently testedv9.1.0419Yegappan Lakshmanan
Problem: eval.c not sufficiently tested Solution: Add a few more additional tests for eval.c, (Yegappan Lakshmanan) closes: #14799 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
13 dayspatch 9.1.0415: Some functions are not testedv9.1.0415Yegappan Lakshmanan
Problem: Some functions are not tested Solution: Add a few more tests, fix a few minor problems (Yegappan Lakshmanan) closes: #14789 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-22patch 9.1.0197: Vim9: problem evaluating negated boolean logicv9.1.0197Yegappan Lakshmanan
Problem: Vim9: problem evaluating negated boolean logic (lxhillwind) Solution: Don't clear the first value on short circuit evaluation (Yegappan Lakshmanan) fixes: #14265 closes: #14269 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-05patch 9.0.2152: Using type unknown for List/Dict containersv9.0.2152Yegappan Lakshmanan
Problem: Using type unknown for List/Dict containers Solution: Use 'any' instead fixes: #13582 closes: #13625 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2023-01-09patch 9.0.1164: evaluating string expression advances function linev9.0.1164h-east
Problem: Evaluating string expression advances function line. Solution: Disable function lines while parsing a string expression. (Hirohito Higashi, closes #11796)
2022-12-29patch 9.0.1108: type error when using "any" type and adding to floatv9.0.1108Bram Moolenaar
Problem: Type error when using "any" type and adding a number to a float. Solution: Accept both a number and a float. (closes #11753)
2022-12-27patch 9.0.1107: float constant not recognized as floatv9.0.1107Bram Moolenaar
Problem: Float constant not recognized as float. Solution: Check the vartype instead of comparing with t_float. (closes #11754)
2022-11-12patch 9.0.0863: col() and charcol() only work for the current windowv9.0.0863Yegappan Lakshmanan
Problem: col() and charcol() only work for the current window. Solution: Add an optional winid argument. (Yegappan Lakshmanan, closes #11466, closes #11461)
2022-11-06patch 9.0.0840: cannot change a slice of a const listv9.0.0840Bram Moolenaar
Problem: Cannot change a slice of a const list. (Takumi KAGIYAMA) Solution: Remove the const flag from the slice type. (closes #11490)
2022-10-17patch 9.0.0778: indexing of unknown const type fails during compilationv9.0.0778Bram Moolenaar
Problem: Indexing of unknown const type fails during compilation. Solution: Check for "any" properly. (closes #11389)
2022-10-15patch 9.0.0766: too many delete() calls in testsv9.0.0766Bram Moolenaar
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-08-20patch 9.0.0230: no error for comma missing in list in :def functionv9.0.0230Bram Moolenaar
Problem: No error for comma missing in list in :def function. Solution: Check for missing comma. (closes #10943)
2022-08-06patch 9.0.0150: error for using #{ in an expression is a bit confusingv9.0.0150Bram Moolenaar
Problem: Error for using #{ in an expression is a bit confusing. Solution: Mention that this error is only given for an expression. Avoid giving the error more than once. (closes #10855)
2022-05-22patch 8.2.5003: cannot do bitwise shiftsv8.2.5003Yegappan Lakshmanan
Problem: Cannot do bitwise shifts. Solution: Add the >> and << operators. (Yegappan Lakshmanan, closes #8457)
2022-05-17patch 8.2.4972: Vim9: compilation fails when using dict member when skippingv8.2.4972Bram Moolenaar
Problem: Vim9: compilation fails when using dict member when skipping. Solution: Do not generate ISN_USEDICT when skipping. (closes #10433)
2022-05-17patch 8.2.4971: Vim9: interpolated string seen as rangev8.2.4971Bram Moolenaar
Problem: Vim9: interpolated string seen as range. Solution: Recognize an interpolated string at the start of a command line. (closes #10434)
2022-05-13patch 8.2.4949: Vim9: some code not covered by testsv8.2.4949Bram Moolenaar
Problem: Vim9: some code not covered by tests. Solution: Add a few more test cases. Fix double error message.
2022-05-12patch 8.2.4946: Vim9: some code not covered by testsv8.2.4946Bram Moolenaar
Problem: Vim9: some code not covered by tests. Solution: Add a few more test cases. Remove dead code.
2022-05-12patch 8.2.4940: some code is never usedv8.2.4940Bram Moolenaar
Problem: Some code is never used. Solution: Remove dead code. Add a few more test cases.
2022-05-10patch 8.2.4934: string interpolation fails when not evaluatingv8.2.4934Bram Moolenaar
Problem: String interpolation fails when not evaluating. Solution: Skip the expression when not evaluating. (closes #10398)
2022-05-08patch 8.2.4914: string interpolation in :def function may failv8.2.4914Bram Moolenaar
Problem: String interpolation in :def function may fail. Solution: Do not terminate the expression. (closes #10377)
2022-05-07patch 8.2.4900: Vim9 expression test fails without the job featurev8.2.4900Dominique Pelle
Problem: Vim9 expression test fails without the job feature. Solution: Add a check for the job feature. (Dominique Pellé, closes #10373)
2022-05-06patch 8.2.4892: test failures because of changed error messagesv8.2.4892Bram Moolenaar
Problem: Test failures because of changed error messages. Solution: Adjust the exptected error messages.
2022-04-27patch 8.2.4834: Vim9: some lines not covered by testsv8.2.4834Bram Moolenaar
Problem: Vim9: some lines not covered by tests. Solution: Add a few more tests. Remove dead code.
2022-04-05patch 8.2.4697: Vim9: crash when adding a duplicate key to a dictionaryv8.2.4697Bram Moolenaar
Problem: Vim9: crash when adding a duplicate key to a dictionary. Solution: Clear the stack item when it has been moved into the dictionary. (closes #10087)
2022-03-31patch 8.2.4657: errors for functions are sometimes hard to readv8.2.4657Bram Moolenaar
Problem: Errors for functions are sometimes hard to read. Solution: Use printable_func_name() in more places.
2022-03-28patch 8.2.4642: Vim9: in :def function script var cannot be nullv8.2.4642Bram Moolenaar
Problem: Vim9: in :def function script var cannot be null. Solution: Only initialize a script variable when not set to a null value. (closes #10034)
2022-03-27patch 8.2.4634: Vim9: cannot initialize a variable to null_listv8.2.4634Bram Moolenaar
Problem: Vim9: cannot initialize a variable to null_list. Solution: Give negative count to NEWLIST. (closes #10027) Also fix inconsistencies in comparing with null values.
2022-03-22patch 8.2.4611: typos in tests; one lua line not covered by testv8.2.4611Dominique Pelle
Problem: Typos in tests; one lua line not covered by test. Solution: Fix typos. Add test case. (Dominique Pellé, closes #9994)
2022-03-20patch 8.2.4602: Vim9: not enough test coverage for executing :def functionv8.2.4602Bram Moolenaar
Problem: Vim9: not enough test coverage for executing :def function. Solution: Add a few more tests. Fix uncovered problem. Remove dead code.
2022-03-16patch 8.2.4581: null types not fully testedv8.2.4581Bram Moolenaar
Problem: Null types not fully tested. Solution: Add some more tests using null types.
2022-03-15patch 8.2.4576: Vim9: error for comparing with null can be annoyingv8.2.4576Bram Moolenaar
Problem: Vim9: error for comparing with null can be annoying. Solution: Allow comparing anything with null. (closes #9948)
2022-03-10patch 8.2.4540: line number for error is off by onev8.2.4540Bram Moolenaar
Problem: Line number for error is off by one. Solution: Remember the line number of the comparison. (closes #9923)
2022-03-10patch 8.2.4539: when comparing special v:none and v:null are handled the samev8.2.4539Bram Moolenaar
Problem: When comparing special v:none and v:null are handled the same when compiling. Solution: Pass more information so that v:none can be handled differently at compile time. (issue #9923)
2022-03-10patch 8.2.4534: Vim9: "is" operator with empty string and null returns truev8.2.4534Bram Moolenaar
Problem: Vim9: "is" operator with empty string and null returns true. Solution: Consider empty string and null to be different for "is".
2022-03-08patch 8.2.4529: Vim9: comparing partial with function failsv8.2.4529Bram Moolenaar
Problem: Vim9: comparing partial with function fails. Solution: Support this comparison. Avoid a crash. (closes #9909) Add more test cases.
2022-03-01patch 8.2.4487: Vim9: cannot compare with v:nullv8.2.4487Bram Moolenaar
Problem: Vim9: cannot compare with v:null. Solution: Allow comparing anything with v:null. (closes #9866)
2022-02-28patch 8.2.4484: Vim9: some error messages are not testedv8.2.4484Bram Moolenaar
Problem: Vim9: some error messages are not tested. Solution: Add a few more test cases. Delete dead code.
2022-02-26patch 8.2.4476: operator name spelled wrongv8.2.4476=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Operator name spelled wrong. Solution: Change trinary to ternary. (Goc Dundar, closes #9850)
2022-02-17patch 8.2.4410: Vim9: some code not covered by testsv8.2.4410Bram Moolenaar
Problem: Vim9: some code not covered by tests. Solution: Add a few more tests. Remove dead code.
2022-02-12patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistenciesv8.2.4360Bram Moolenaar
Problem: Vim9: allowing use of "s:" leads to inconsistencies. Solution: Disallow using "s:" in Vim9 script at the script level.
2022-02-04patch 8.2.4296: Vim9: not all code covered by testsv8.2.4296Bram Moolenaar
Problem: Vim9: not all code covered by tests. Solution: Add a few more tests for corner cases. Fix hang when single quote is missing.
2022-02-04patch 8.2.4295: Vim9: concatenating two lists may result in wrong typev8.2.4295Bram Moolenaar
Problem: Vim9: concatenating two lists may result in wrong type. Solution: Remove the type instead of using list<any>. (closes #9692)
2022-02-03patch 8.2.4293: Vim9: when copying a list it gets type list<any>v8.2.4293Bram Moolenaar
Problem: Vim9: when copying a list it gets type list<any> even when the original list did not have a type. Solution: Only set the type when the original list has a type. (closes #9692)
2022-01-31patch 8.2.4272: Vim9 expr test fails without the channel featurev8.2.4272Bram Moolenaar
Problem: Vim9 expr test fails without the channel feature. (Dominique Pellé) Solution: Remove "g:" before "CheckFeature". (closes #9671)
2022-01-30patch 8.2.4260: Vim9: can still use a global function without g:v8.2.4260Bram Moolenaar
Problem: Vim9: can still use a global function without g: at the script level. Solution: Also check for g: at the script level. (issue #9637)
2022-01-29patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar
Problem: Vim9: finding global function without g: prefix but not finding global variable is inconsistent. Solution: Require using g: for a global function. Change the vim9.vim script into a Vim9 script with exports. Fix that import in legacy script does not work.
2022-01-18patch 8.2.4128: crash when method cannot be foundv8.2.4128Bram Moolenaar
Problem: Crash when method cannot be found. (Christian J. Robinson) Solution: Don't mix up pointer names.