comparison src/testdir/test_vim9_script.vim @ 23950:4279c1c66df1 v8.2.2517

patch 8.2.2517: Vim9: fix for s390 not tested on other systems Commit: https://github.com/vim/vim/commit/7c5b3c03699a4ab31f47c24290852d441ea8c12a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 14 22:40:57 2021 +0100 patch 8.2.2517: Vim9: fix for s390 not tested on other systems Problem: Vim9: fix for s390 not tested on other systems. Solution: Add a test.
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Feb 2021 22:45:03 +0100
parents 949238ccbd50
children 9c8a20cfa540
comparison
equal deleted inserted replaced
23949:151224bd41f7 23950:4279c1c66df1
721 CheckDefFailure(['try', 'echo 1', 'endtry'], 'E1032:') 721 CheckDefFailure(['try', 'echo 1', 'endtry'], 'E1032:')
722 722
723 CheckDefFailure(['throw'], 'E1143:') 723 CheckDefFailure(['throw'], 'E1143:')
724 CheckDefFailure(['throw xxx'], 'E1001:') 724 CheckDefFailure(['throw xxx'], 'E1001:')
725 enddef 725 enddef
726
727 def Try_catch_skipped()
728 var l = []
729 try
730 finally
731 endtry
732
733 if 1
734 else
735 try
736 endtry
737 endif
738 enddef
739
740 " The skipped try/endtry was updating the wrong instruction.
741 def Test_try_catch_skipped()
742 var instr = execute('disassemble Try_catch_skipped')
743 assert_match("NEWLIST size 0\n", instr)
744 enddef
745
746
726 747
727 def Test_throw_vimscript() 748 def Test_throw_vimscript()
728 # only checks line continuation 749 # only checks line continuation
729 var lines =<< trim END 750 var lines =<< trim END
730 vim9script 751 vim9script