comparison src/testdir/test_vim9_script.vim @ 28623:1d92ba691dc4 v8.2.4835

patch 8.2.4835: Vim9: some lines not covered by tests Commit: https://github.com/vim/vim/commit/95e4dd813a19236772dbe53eb9f605b4ff5199b2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 27 22:15:40 2022 +0100 patch 8.2.4835: Vim9: some lines not covered by tests Problem: Vim9: some lines not covered by tests. Solution: Add a few more tests. Fix disassemble output.
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 Apr 2022 23:30:03 +0200
parents 35e24d9de858
children a2cf17d0d5da
comparison
equal deleted inserted replaced
28622:a2a087110496 28623:1d92ba691dc4
2374 for [v1, v1] in [[1, 2], [3, 4]] 2374 for [v1, v1] in [[1, 2], [3, 4]]
2375 echo v1 2375 echo v1
2376 endfor 2376 endfor
2377 END 2377 END
2378 v9.CheckDefExecFailure(lines, 'E1017:', 1) 2378 v9.CheckDefExecFailure(lines, 'E1017:', 1)
2379
2380 lines =<< trim END
2381 for [a, b] in g:listlist
2382 echo a
2383 endfor
2384 END
2385 g:listlist = [1, 2, 3]
2386 v9.CheckDefExecFailure(lines, 'E1140:', 1)
2379 enddef 2387 enddef
2380 2388
2381 def Test_for_loop_with_try_continue() 2389 def Test_for_loop_with_try_continue()
2382 var lines =<< trim END 2390 var lines =<< trim END
2383 var looped = 0 2391 var looped = 0