test: make {MATCH:} behave less unexpectedly in screen:expect()

Include the rest of the line and allow multiple {MATCH:} patterns.
This commit is contained in:
zeertzjq
2023-02-18 09:27:10 +08:00
parent bb369a14f3
commit 9b9f8dfcc4
7 changed files with 37 additions and 120 deletions

View File

@@ -1322,7 +1322,7 @@ describe('ui/ext_messages', function()
{1:~ }type :q{5:<Enter>} to exit {1: }|
{1:~ }type :help{5:<Enter>} for help {1: }|
{1:~ }|
{1:~ }type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}|
{1:~{MATCH: +}}type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}{1:{MATCH: +}}|
{1:~ }|
{MATCH:.*}|
{MATCH:.*}|
@@ -1378,7 +1378,7 @@ describe('ui/ext_messages', function()
type :q{5:<Enter>} to exit |
type :help{5:<Enter>} for help |
|
type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+}|
{MATCH: +}type :help news{5:<Enter>} to see changes in v{MATCH:%d+%.%d+ +}|
|
{MATCH:.*}|
{MATCH:.*}|