diff options
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index a818d1408..c0a4358d8 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -131,12 +131,29 @@ def Test_if_linebreak() enddef def Test_while_linebreak() - " TODO: line break in :while expression doesn't work yet let lines =<< trim END vim9script let nr = 0 - while nr < 10 + 3 - nr = nr + 4 + while nr < + 10 + 3 + nr = nr + + 4 + endwhile + assert_equal(16, nr) + END + CheckScriptSuccess(lines) + + lines =<< trim END + vim9script + let nr = 0 + while nr + < + 10 + + + 3 + nr = nr + + + 4 endwhile assert_equal(16, nr) END |