summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_script.vim
AgeCommit message (Collapse)Author
2020-10-20patch 8.2.1870: Vim9: no need to keep all script variablesv8.2.1870Bram Moolenaar
Problem: Vim9: no need to keep all script variables. Solution: Only keep script variables when a function was defined that could use them. Fix freeing static string on exit.
2020-10-17patch 8.2.1859: Vim9: crash in unpack assignmentv8.2.1859Bram Moolenaar
Problem: Vim9: crash in unpack assignment. Solution: Make sure an error message is turned into an exception. (closes #7159)
2020-10-16patch 8.2.1854: Vim9: crash when throwing exception for NULL stringv8.2.1854Bram Moolenaar
Problem: Vim9: crash when throwing exception for NULL string. (Dhiraj Mishra) Solution: Handle NULL string like empty string. (closes #7139)
2020-10-15patch 8.2.1849: Vim9: garbage collection frees block-local variablesv8.2.1849Bram Moolenaar
Problem: Vim9: garbage collection frees block-local variables. Solution: Mark all script variables as used.
2020-10-15patch 8.2.1846: Vim9: block variables are not found in compiled functionv8.2.1846Bram Moolenaar
Problem: Vim9: variables declared in a local block are not found in when a function is compiled. Solution: Look for script variables in sn_all_vars.
2020-10-10patch 8.2.1826: Vim9: cannot use a {} block at script levelv8.2.1826Bram Moolenaar
Problem: Vim9: cannot use a {} block at script level. Solution: Recognize a {} block.
2020-10-10patch 8.2.1824: Vim9: variables at the script level escape their scopev8.2.1824Bram Moolenaar
Problem: Vim9: variables at the script level escape their scope. Solution: When leaving a scope remove variables declared in it.
2020-10-08patch 8.2.1813: Vim9: can assign wrong type to script dictv8.2.1813Bram Moolenaar
Problem: Vim9: can assign wrong type to script dict. (Christian J. Robinson) Solution: Check the type if known.
2020-10-04patch 8.2.1798: Vim9: trinary operator condition is too permissivev8.2.1798Bram Moolenaar
Problem: Vim9: trinary operator condition is too permissive. Solution: Use tv_get_bool_chk().
2020-09-30patch 8.2.1777: Vim9: some assignment tests in the wrong filev8.2.1777Bram Moolenaar
Problem: Vim9: some assignment tests in the wrong file. Solution: Move assignment tests to test_vim9_assign.
2020-09-27patch 8.2.1766: Vim9: Some tests are still using :letv8.2.1766Bram Moolenaar
Problem: Vim9: Some tests are still using :let. Solution: Change the last few declarations to use :var.
2020-09-27patch 8.2.1756: Vim9: :let will soon be disallowedv8.2.1756Bram Moolenaar
Problem: Vim9: :let will soon be disallowed. Solution: Add v:disallow_let temporarily. Fix tests.
2020-09-26patch 8.2.1746: Vim9: cannot use "fina" for "finally"v8.2.1746Bram Moolenaar
Problem: Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino) Solution: Specifically check for "fina". (closes #7020)
2020-09-26patch 8.2.1744: Vim9: using ":const!" is weirdv8.2.1744Bram Moolenaar
Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
2020-09-25patch 8.2.1742: test still fails without the terminal featurev8.2.1742Bram Moolenaar
Problem: Test still fails without the terminal feature. Solution: Put check for terminal feature in separate function.
2020-09-25patch 8.2.1740: test fails without the terminal featurev8.2.1740Bram Moolenaar
Problem: Test fails without the terminal feature. Solution: Skip test if the terminal feature is not available.
2020-09-25patch 8.2.1739: Vim9: crash when compiling a manually defined functionv8.2.1739Bram Moolenaar
Problem: Vim9: crash when compiling a manually defined function. (Antony Scriven) Solution: Check that the script ID is positive. (closes #7012)
2020-09-21patch 8.2.1724: Vim9: assignment tests spread outv8.2.1724Bram Moolenaar
Problem: Vim9: assignment tests spread out. Solution: Create new test file for assignment tests.
2020-09-21patch 8.2.1720: Vim9: memory leak with heredoc that isn't executedv8.2.1720Bram Moolenaar
Problem: Vim9: memory leak with heredoc that isn't executed. (Dominique Pellé) Solution: Don't clear the list items. (closes #6991)
2020-09-17patch 8.2.1704: Vim9: crash in for loop when autoload script has an errorv8.2.1704Bram Moolenaar
Problem: Vim9: crash in for loop when autoload script has an error. Solution: Reset suppress_errthrow. Check for NULL list. (closes #6967)
2020-09-16patch 8.2.1700: Vim9: try/catch causes wrong value to be returnedv8.2.1700Bram Moolenaar
Problem: Vim9: try/catch causes wrong value to be returned. Solution: Reset tcd_return. (closes #6964)
2020-09-16patch 8.2.1697: inconsistent capitalization of error messagesv8.2.1697Bram Moolenaar
Problem: Inconsistent capitalization of error messages. Solution: Always start with a capital.
2020-09-16patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expectedv8.2.1691Bram Moolenaar
Problem: Vim9: list<any> is not accepted where list<number> is expected. Solution: Add functions to allocate and free a type_T, use it in ISN_CHECKTYPE. (closes #6959)
2020-09-14patch 8.2.1686: Vim9: "const!" not sufficiently testedv8.2.1686Bram Moolenaar
Problem: Vim9: "const!" not sufficiently tested. Solution: Add a few more test cases. Fix type checking.
2020-09-14patch 8.2.1685: Vim9: cannot declare a constant valuev8.2.1685Bram Moolenaar
Problem: Vim9: cannot declare a constant value. Solution: Introduce ":const!".
2020-09-14patch 8.2.1682: Vim9: const works in an unexpected wayv8.2.1682Bram Moolenaar
Problem: Vim9: const works in an unexpected way. Solution: ":const" only disallows changing the variable, not the value. Make "list[0] = 9" work at the script level.
2020-09-14patch 8.2.1681: Vim9: unnessary :call commands in testsv8.2.1681Bram Moolenaar
Problem: Vim9: unnessary :call commands in tests. Solution: Remove the commands. (issue #6936)
2020-09-13patch 8.2.1674: Vim9: internal error when using variable that was not setv8.2.1674Bram Moolenaar
Problem: Vim9: internal error when using variable that was not set. Solution: Give a meaningful error. (closes #6937)
2020-09-09patch 8.2.1650: Vim9: result of && and || expression is not bool in scriptv8.2.1650Bram Moolenaar
Problem: Vim9: result of && and || expression cannot be assigned to a bool at the script level. Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
2020-09-09patch 8.2.1647: Vim9: result of expression with && and || is not a boolv8.2.1647Bram Moolenaar
Problem: Vim9: result of expression with && and || cannot be assigned to a bool variable. Solution: Add the TTFLAG_BOOL_OK flag and convert the value if needed.
2020-09-09patch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script levelv8.2.1644Bram Moolenaar
Problem: Vim9: cannot assign 1 and 0 to bool at script level. Solution: Add the TTFLAG_BOOL_OK flag to the type. Fix name of test function.
2020-09-09patch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expectedv8.2.1641Bram Moolenaar
Problem: Vim9: cannot use 0 or 1 where a bool is expected. Solution: Allow using 0 and 1 for a bool type. (closes #6903)
2020-09-06patch 8.2.1632: not checking the context of test_fails()v8.2.1632Bram Moolenaar
Problem: Not checking the context of test_fails(). Solution: Add the line number and context arguments. Give error if assert_fails() argument types are wrong.
2020-09-06patch 8.2.1623: Vim9: using :call where it is not neededv8.2.1623Bram Moolenaar
Problem: Vim9: using :call where it is not needed. Solution: Remove :call. (closes #6892)
2020-09-04patch 8.2.1593: tests do not check the error number properlyv8.2.1593Bram Moolenaar
Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
2020-08-30patch 8.2.1543: Vim9: test with invalid SID is skipped in the GUIv8.2.1543Bram Moolenaar
Problem: Vim9: test with invalid SID is skipped in the GUI. Solution: Read the CTRL-C that feedkeys() put in typeahead.
2020-08-29patch 8.2.1542: Vim9: test with invalid SID does not work in the GUIv8.2.1542Bram Moolenaar
Problem: Vim9: test with invalid SID does not work in the GUI. Solution: Skip the test in the GUI.
2020-08-29patch 8.2.1541: Vim9: cannot find function reference for s:Funcv8.2.1541Bram Moolenaar
Problem: Vim9: cannot find function reference for s:Func. Solution: Recognize <SNR> prefix. (closes #6805)
2020-08-29patch 8.2.1539: using invalid script ID causes a crashv8.2.1539Bram Moolenaar
Problem: Using invalid script ID causes a crash. Solution: Check the script ID to be valid. (closes #6804)
2020-08-27patch 8.2.1528: Vim9: :endif not found after "if false"v8.2.1528Bram Moolenaar
Problem: Vim9: :endif not found after "if false". Solution: When skipping still check for a following command. (closes #6797)
2020-08-27patch 8.2.1527: Vim9: cannot use a function name at script levelv8.2.1527Bram Moolenaar
Problem: Vim9: cannot use a function name as a function reference at script level. Solution: Check if a name is a function name. (closes #6789)
2020-08-23patch 8.2.1519: Vim9: Ex command default range is not setv8.2.1519Bram Moolenaar
Problem: Vim9: Ex command default range is not set. Solution: When range is not given use default. (closes #6779)
2020-08-23patch 8.2.1518: Vim9: cannot assign to local optionv8.2.1518Bram Moolenaar
Problem: Vim9: cannot assign to local option. Solution: Skip over "&l:" and "&g:". (closes #6749)
2020-08-23patch 8.2.1516: Vim9: error for :exe has wrong line numberv8.2.1516Bram Moolenaar
Problem: Vim9: error for :exe has wrong line number. Solution: Set line number before calling do_cmdline_cmd(). (closes #6774)
2020-08-23patch 8.2.1515: Vim9: can create s:var in legacy script but cannot unletv8.2.1515Bram Moolenaar
Problem: Vim9: can create s:var in legacy script but cannot unlet. Solution: Allow :unlet for legacy script var.
2020-08-21patch 8.2.1503: Vim9: error for autocmd defined in :def in legacy scriptv8.2.1503Bram Moolenaar
Problem: Vim9: error for an autocmd defined in a :def function in legacy Vim script. Solution: Don't check the variable type. (closes #6758)
2020-08-21patch 8.2.1502: Vim9: can use += with a :let command at script levelv8.2.1502Bram Moolenaar
Problem: Vim9: can use += with a :let command at script level. Solution: Give an error.
2020-08-20patch 8.2.1500: Vim9: error when using address without a commandv8.2.1500Bram Moolenaar
Problem: Vim9: error when using address without a command. Solution: Execute the range itself. (closes #6747)
2020-08-20patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491Bram Moolenaar
Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743)
2020-08-19patch 8.2.1490: Vim9: using /= with float and number doesn't workv8.2.1490Bram Moolenaar
Problem: Vim9: using /= with float and number doesn't work. Solution: Better support assignment with operator. (closes #6742)