summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_disassemble.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024Bram Moolenaar2020-06-201-1/+1
| | | | | Problem: Vim9: no error for using "let g:var = val". Solution: Add an error.
* patch 8.2.1008: Vim9: no test for disassambling newly added instructionsv8.2.1008Bram Moolenaar2020-06-181-0/+36
| | | | | Problem: Vim9: no test for disassambling newly added instructions. Solution: Add a function and check disassembly.
* patch 8.2.1006: Vim9: require unnecessary return statementv8.2.1006Bram Moolenaar2020-06-181-0/+24
| | | | | Problem: Vim9: require unnecessary return statement. Solution: Improve the use of the had_return flag. (closes #6270)
* patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818Bram Moolenaar2020-05-241-4/+2
| | | | | | Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.
* patch 8.2.0758: Vim9: no test for STORELIST and STOREDICTv8.2.0758Bram Moolenaar2020-05-151-189/+261
| | | | | Problem: Vim9: no test for STORELIST and STOREDICT. Solution: Add a test. Make matches stricter.
* patch 8.2.0757: Vim9: no test for MEMBER instructionv8.2.0757Bram Moolenaar2020-05-151-92/+101
| | | | | Problem: Vim9: no test for MEMBER instruction. Solution: Add a test. Make matches stricter.
* patch 8.2.0753: Vim9: expressions are evaluated in the discovery phasev8.2.0753Bram Moolenaar2020-05-141-1/+1
| | | | | | Problem: Vim9: expressions are evaluated in the discovery phase. Solution: Bail out if an expression is not a constant. Require a type for declared constants.
* patch 8.2.0725: Vim9: cannot call a function declared later in Vim9 scriptv8.2.0725Bram Moolenaar2020-05-091-0/+25
| | | | | Problem: Vim9: cannot call a function declared later in Vim9 script. Solution: Make two passes through the script file.
* patch 8.2.0723: Vim9: nested constant expression not evaluated compile timev8.2.0723Bram Moolenaar2020-05-091-0/+10
| | | | | Problem: Vim9: nested constant expression not evaluated compile time. Solution: Use compile_expr1() for parenthesis.
* patch 8.2.0719: Vim9: more expressions can be evaluated at compile timev8.2.0719Bram Moolenaar2020-05-091-48/+58
| | | | | Problem: Vim9: more expressions can be evaluated at compile time Solution: Recognize has('name').
* patch 8.2.0717: Vim9: postponed constant expressions does not scalev8.2.0717Bram Moolenaar2020-05-081-0/+10
| | | | | Problem: Vim9: postponed constant expressions does not scale. Solution: Add a structure to pass around postponed constants.
* patch 8.2.0708: Vim9: constant expressions are not simplifiedv8.2.0708Bram Moolenaar2020-05-071-3/+13
| | | | | Problem: Vim9: constant expressions are not simplified. Solution: Simplify string concatenation.
* patch 8.2.0706: Vim9: using assert_fails() causes function to finishv8.2.0706Bram Moolenaar2020-05-071-0/+2
| | | | | Problem: Vim9: using assert_fails() causes function to finish. Solution: Check did_emsg instead of called_emsg.
* patch 8.2.0703: Vim9: closure cannot store value in outer contextv8.2.0703Bram Moolenaar2020-05-061-0/+36
| | | | | | Problem: Vim9: closure cannot store value in outer context. Solution: Make storing value in outer context work. Make :disassemble accept a function reference.
* patch 8.2.0640: Vim9: expanding does not workv8.2.0640Bram Moolenaar2020-04-251-0/+26
| | | | | Problem: Vim9: expanding does not work. Solution: Find wildcards in not compiled commands. Reorganize test files.
* patch 8.2.0626: Vim9: wrong syntax of function in Vim9 scriptv8.2.0626Bram Moolenaar2020-04-231-0/+22
| | | | | | Problem: Vim9: wrong syntax of function in Vim9 script. Solution: Give error for missing space. Implement :echomsg and :echoerr. (closes #5670)
* patch 8.2.0605: Vim9: cannot unlet an environment variablev8.2.0605Bram Moolenaar2020-04-191-1/+4
| | | | | Problem: Vim9: cannot unlet an environment variable. Solution: Implement unlet for $VAR.
* patch 8.2.0601: Vim9: :unlet is not compiledv8.2.0601Bram Moolenaar2020-04-191-0/+19
| | | | | Problem: Vim9: :unlet is not compiled. Solution: Implement :unlet instruction and check for errors.
* patch 8.2.0600: Vim9: cannot read or write w:, t: and b: variablesv8.2.0600Bram Moolenaar2020-04-191-0/+18
| | | | | | Problem: Vim9: cannot read or write w:, t: and b: variables. Solution: Implement load and store for w:, t: and b: variables. (closes #5950)
* patch 8.2.0595: Vim9: not all commands using ends_excmd() testedv8.2.0595Bram Moolenaar2020-04-181-7/+7
| | | | | | Problem: Vim9: not all commands using ends_excmd() tested. Solution: Find # comment after regular commands. Add more tests. Report error for where it was caused.
* patch 8.2.0570: Vim9: no error when omitting type from argumentv8.2.0570Bram Moolenaar2020-04-131-2/+2
| | | | | Problem: Vim9: no error when omitting type from argument. Solution: Enforce specifying argument types.
* patch 8.2.0565: Vim9: tests contain superfluous line continuationv8.2.0565Bram Moolenaar2020-04-121-473/+473
| | | | | Problem: Vim9: tests contain superfluous line continuation. Solution: Remove line continuation no longer needed. Skip empty lines.
* patch 8.2.0512: Vim9: no optional arguments in func typev8.2.0512Bram Moolenaar2020-04-051-6/+8
| | | | | | Problem: Vim9: no optional arguments in func type. Solution: Check for question mark after type. Find function reference without function().
* patch 8.2.0508: Vim9: func and partial types not done yetv8.2.0508Bram Moolenaar2020-04-031-15/+11
| | | | | | Problem: Vim9: func and partial types not done yet Solution: Fill in details about func declaration, drop a separate partial declaration.
* patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar2020-04-021-0/+2
| | | | | Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
* patch 8.2.0496: Vim9: disassemble test failsv8.2.0496Bram Moolenaar2020-04-021-1/+41
| | | | | Problem: Vim9: disassemble test fails. Solution: Separate test cases with recognized constant expressions.
* patch 8.2.0487: Vim9: compiling not sufficiently testedv8.2.0487Bram Moolenaar2020-03-311-0/+25
| | | | | Problem: Vim9: compiling not sufficiently tested. Solution: Add more tests. Fix bug with PCALL.
* patch 8.2.0408: delete() commented out for testingv8.2.0408Bram Moolenaar2020-03-191-1/+1
| | | | | Problem: Delete() commented out for testing. Solution: Undo commenting-out.
* patch 8.2.0346: Vim9: finding common list type not testedv8.2.0346Bram Moolenaar2020-03-011-0/+32
| | | | | Problem: Vim9: finding common list type not tested. Solution: Add more tests. Fix listing function. Fix overwriting type.
* patch 8.2.0343: Vim9: using wrong instruction, limited test coveragev8.2.0343Bram Moolenaar2020-03-011-0/+59
| | | | | Problem: Vim9: using wrong instruction, limited test coverage. Solution: Use ISN_PUSHJOB. Add a few more tests.
* patch 8.2.0323: Vim9: calling a function that is defined later is slowv8.2.0323Bram Moolenaar2020-02-261-0/+32
| | | | | | Problem: Vim9: calling a function that is defined later is slow. Solution: Once the function is found update the instruction so it can be called directly.
* patch 8.2.0321: Vim9: ":execute" does not work yetv8.2.0321Bram Moolenaar2020-02-261-0/+33
| | | | | | Problem: Vim9: ":execute" does not work yet. Solution: Add ISN_EXECUTE. (closes #5699) Also make :echo work with more than one argument.
* patch 8.2.0299: Vim9: ISN_STORE with argument not testedv8.2.0299Bram Moolenaar2020-02-221-0/+17
| | | | | | Problem: Vim9: ISN_STORE with argument not tested. Some cases in tv2bool() not tested. Solution: Add tests. Add test_unknown() and test_void().
* patch 8.2.0277: Vim9: not all instructions covered by testsv8.2.0277Bram Moolenaar2020-02-191-0/+139
| | | | | Problem: Vim9: not all instructions covered by tests. Solution: Add more test cases.
* patch 8.2.0253: crash when using :disassamble without argumentv8.2.0253Bram Moolenaar2020-02-131-0/+4
| | | | | | Problem: Crash when using :disassamble without argument. (Dhiraj Mishra) Solution: Check for missing argument. (Dominique Pelle, closes #5635, closes #5637)
* patch 8.2.0229: compare instructions not testedv8.2.0229Bram Moolenaar2020-02-071-14/+109
| | | | | Problem: Compare instructions not tested. Solution: Add test cases. Fix disassemble with line continuation.
* patch 8.2.0227: compiling a few instructions not testedv8.2.0227Bram Moolenaar2020-02-061-1/+78
| | | | | Problem: Compiling a few instructions not tested. Solution: Add more test cases.
* patch 8.2.0226: compiling for loop not testedv8.2.0226Bram Moolenaar2020-02-061-0/+32
| | | | | Problem: Compiling for loop not tested. Solution: Add a test. Make variable initialization work for more types.
* patch 8.2.0225: compiling lambda not tested yetv8.2.0225Bram Moolenaar2020-02-061-0/+47
| | | | | Problem: compiling lambda not tested yet. Solution: Add test for lambda and funcref. Drop unused instruction arg.
* patch 8.2.0224: compiling :elseif not tested yetv8.2.0224Bram Moolenaar2020-02-061-0/+62
| | | | | Problem: compiling :elseif not tested yet. Solution: Add test for :elseif. Fix generating jumps.
* patch 8.2.0223: some instructions not yet testedv8.2.0223Bram Moolenaar2020-02-061-0/+220
Problem: Some instructions not yet tested. Solution: Disassemble more instructions. Move tests to a new file. Compile call to s:function().