Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 25945:39901825dd61 v8.2.3506
patch 8.2.3506: Vim9: special cases for "g" and "s" insufficiently tested
Commit: https://github.com/vim/vim/commit/c0abac67d7a9cccf836bbda002ec72914e3cb3d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 13 21:17:05 2021 +0100
patch 8.2.3506: Vim9: special cases for "g" and "s" insufficiently tested
Problem: Vim9: special cases for "g" and "s" insufficiently tested.
Solution: Add a few more test cases.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Oct 2021 22:30:04 +0200 |
parents | 377a7686a52f |
children | d9f9cdb2337e |
comparison
equal
deleted
inserted
replaced
25944:837198c91a25 | 25945:39901825dd61 |
---|---|
1529 def Test_no_space_after_command() | 1529 def Test_no_space_after_command() |
1530 var lines =<< trim END | 1530 var lines =<< trim END |
1531 g /pat/cmd | 1531 g /pat/cmd |
1532 END | 1532 END |
1533 CheckDefAndScriptFailure(lines, 'E1242:', 1) | 1533 CheckDefAndScriptFailure(lines, 'E1242:', 1) |
1534 lines =<< trim END | |
1535 g #pat#cmd | |
1536 END | |
1537 CheckDefAndScriptFailure(lines, 'E1242:', 1) | |
1538 lines =<< trim END | |
1539 g#pat#cmd | |
1540 END | |
1541 CheckDefAndScriptSuccess(lines) | |
1542 lines =<< trim END | |
1543 g# pat#cmd | |
1544 END | |
1545 CheckDefAndScriptSuccess(lines) | |
1534 | 1546 |
1535 lines =<< trim END | 1547 lines =<< trim END |
1536 s /pat/repl | 1548 s /pat/repl |
1537 END | 1549 END |
1538 CheckDefAndScriptFailure(lines, 'E1242:', 1) | 1550 CheckDefAndScriptFailure(lines, 'E1242:', 1) |
1551 lines =<< trim END | |
1552 s #pat#repl | |
1553 END | |
1554 CheckDefAndScriptFailure(lines, 'E1242:', 1) | |
1555 lines =<< trim END | |
1556 s#pat#repl | |
1557 END | |
1558 CheckDefExecAndScriptFailure(lines, 'E486:', 1) | |
1559 lines =<< trim END | |
1560 s# pat#repl | |
1561 END | |
1562 CheckDefExecAndScriptFailure(lines, 'E486:', 1) | |
1539 enddef | 1563 enddef |
1540 | 1564 |
1541 | 1565 |
1542 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 1566 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |