Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 27539:ce4c2f4ce1f9 v8.2.4296
patch 8.2.4296: Vim9: not all code covered by tests
Commit: https://github.com/vim/vim/commit/83d0cec95697c244c8096c78aa806469302a8e19
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 4 21:17:58 2022 +0000
patch 8.2.4296: Vim9: not all code covered by tests
Problem: Vim9: not all code covered by tests.
Solution: Add a few more tests for corner cases. Fix hang when single quote
is missing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Feb 2022 22:30:04 +0100 |
parents | e2bb28237695 |
children | 5c4ab8d4472c |
comparison
equal
deleted
inserted
replaced
27538:f37561549ec2 | 27539:ce4c2f4ce1f9 |
---|---|
1831 END | 1831 END |
1832 v9.CheckDefAndScriptSuccess(lines) | 1832 v9.CheckDefAndScriptSuccess(lines) |
1833 | 1833 |
1834 v9.CheckDefAndScriptFailure(['var x = "abc'], 'E114:', 1) | 1834 v9.CheckDefAndScriptFailure(['var x = "abc'], 'E114:', 1) |
1835 v9.CheckDefAndScriptFailure(["var x = 'abc"], 'E115:', 1) | 1835 v9.CheckDefAndScriptFailure(["var x = 'abc"], 'E115:', 1) |
1836 v9.CheckDefFailure(["if 0", "echo 'xx", "endif"], 'E115', 2) | |
1836 enddef | 1837 enddef |
1837 | 1838 |
1838 def Test_expr8_vimvar() | 1839 def Test_expr8_vimvar() |
1839 v:errors = [] | 1840 v:errors = [] |
1840 var errs: list<string> = v:errors | 1841 var errs: list<string> = v:errors |